Sorting in Python || Learn Python Programming (Computer Science)

25
31



Sorting is a fundamental task in software engineering. In Python, there are a variety of ways to sort lists, tuples, and other objects. Today we talk about the sort() method which is an in-place algorithm for sorting lists. We also cover the sorted() function which can be used on more objects, and creates a sorted copy, leaving the original object unchanged.

We were able to make this Python video with the help of our Patrons on Patreon! We would like to recognize the generosity of our VIP Patrons Matt Peters, Andrew Mengede, Martin Stephens, and Markie Ward. Thank you so much for helping us continue our work!

➢➢➢➢➢➢➢➢➢➢
To​ ​help​ us continue making videos,​ ​you​ ​can​ ​support​ Socratica at:

​Patreon​:

Socratica Paypal:

We also accept Bitcoin! 🙂
Our​ ​address​ ​is: 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9

Thank​ ​you!!

➢➢➢➢➢➢➢➢➢➢
If you’d like a reference book, we recommend “Python Cookbook, 3rd Edition” from O’Reilly:

The Mythical Man Month – Essays on Software Engineering & Project Management

➢➢➢➢➢➢➢➢➢➢
You​ ​can​ ​also​ ​follow​ ​Socratica​ ​on:
-​ ​Twitter:​ ​@socratica
-​ ​Instagram:​ ​@SocraticaStudios
-​ ​Facebook:​ ​@SocraticaStudios

➢➢➢➢➢➢➢➢➢➢
Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
Written & Produced by Michael Harrison (@mlh496 on Twitter)

Nguồn: https://quydinh.com

Xem thêm bài viết khác: https://quydinh.com/cong-nghe

25 COMMENTS

  1. Welcome to Socratica! You can see our entire Python Playlist here: http://bit.ly/PythonSocratica

    Subscribe to see all our new videos! http://bit.ly/SocraticaSubscribe

  2. If I had told my child self that one day I'd be entertaining myself by going through computer programming languages while a worldwide viral pandemic has everyone on lockdown, I think I would have been ok with this.

  3. Can someone explain what’s going on at 2:23 ? How do you assign names to elements of a list? She just blew over how to do this (I use dataframes a lot)

  4. I don't get the lines:
    size = lambda planet : planet[1]
    planets.sort(key=size, reverse=True)
    Could anyone enlighten me please?

  5. The way you speak, reminds me of space games that I used to play when I was a child. This make learning so much more fun. Thank you!

  6. Very well choreographed videos, very innovative way of teaching python. These guys deserve some sort of recognition and fame. Great work 👍

  7. While my high school teacher forbids us to use sort() function because we are learning how to implement bubble sort and insertion sort in python. 😂

  8. It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉

LEAVE A REPLY

Please enter your comment!
Please enter your name here