Python Tutorial: Sorting Lists, Tuples, and Objects

preview_player
Показать описание
In this video we will be learning how to sort lists, tuples, and other objects in Python. We will start by performing simple sorts on a list of integers and then move on to slightly more advanced sorting using custom criteria. Let's get started.

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:

#Python
Рекомендации по теме
Комментарии
Автор

For those reading the comments: this channel is a goldmine!

jameezybreezy
Автор

I wonder how can someone dislike these tutorials

galleryofdeb
Автор

Loving the series and wanted to say thank you for putting this out. I noticed due to a typo in my hand typing/copying the code and running it that it is worth mentioning that like other languages I have looked at (which would be just barely getting into C and basic) that sorting strings is based upon the ASCII set, which means that sorting the words 'OS' and 'age' due to lowercase being higher numbered the 'age' string is returned after the 'OS' string. These videos are awesome, TY again for doing this

samwood
Автор

The ease with which this person writes the code is ultra classy. I can only wish I had the knowledge as superior as Corey's.

cutieFAIZANHASSAN
Автор

Hello Sir, THANK YOU SOO MUCH. i literally spend 3 hours to figure out how can i sort my complex tuple...and still didnt get it...Until i watch this video. Please keep up the great work. and thanks once again

maahasgharali
Автор

Amazing. Thanks to you, I have learned so much when I discovered your channel. My grandpa had told me a long time ago: "Knowing how to do something
is not valuable, but knowing how to do something and why to do this in such a way is.". You give us pure knowledge. Thank you.

mateuszsmendowski
Автор

Thank you. This helped so much. Now I can finish my clay shooter project and have a sorted list of names and high scores sorted by scores. Thank you very much!

heroponrikibestest
Автор

Corey is teaching the things we need to know exactly. Thanks.

eatbreathedatascience
Автор

Who would have thought sorting things was so easy! Thanks man, this is gonna be useful =D

dexterflodstrom
Автор

Excellent video. Love it! The Employee class can be made sortable by defining the __lt__ method like
def __lt__(self, other):
return self.name < other.name

david-krikheli
Автор

I was trying to do this exact thing just today. so glad I stumbled on this video. thanks!

snpsforyomom
Автор

Omg man these videos are beyond amazing. I know python but as i watch your tutorials I see how much extra bs I do that not needed!!!! I didn’t always thohhht that the function in key param should be a custom lambda...

ripperx
Автор

Thanks mr. Corey Schafer, very useful as usual!

davidm.johnston
Автор

Thank you very much, mate! This video really helped me!

BSroad
Автор

Hey, thanks for the video! I just started learning Python in order to get into Data Science and Machine Learning. These have been by far the simplest and easiest videos for me to understand and apply. Thank you!

TheFourOnSix
Автор

such a finest tuts i love it , thank you corey schafer

saljeshmaharjan
Автор

Corey, Very nice and thanks for sharing.

jayh
Автор

Your video is the best for Python learners

yihongli
Автор

nice place to go back to the basics and a great road for beginners

HopeMichaels
Автор

Good bless you
and God bless your courses
learning to get my goal to financially independent
and work in space company and start-ups!

almatnarmatov