Python 3 - How to use the Sorted Function like a pro!

preview_player
Показать описание
In this video I cover the sorted() function, which is a very commonly used function, but the usage of this can be greatly enhanced with the key parameter!

My beginners Python course:

My functional Python course:

-------------
GET The Pythonistas Notebook as your learning companion!
--------------
--------------
JOIN for in-depth coding videos!
------------
Python 3 is an incredible language for beginners, and in each of these videos I am to bring a simple idea to you in short and easy to digest videos. I will be covering data types, control flow, looping, functions, comprehensions, variables, object orientation and much more.
------------
Have a request? Drop me a message!
Рекомендации по теме
Комментарии
Автор

Assuming then that __gt__ would work the same way, you just have to flip the comparison operator? Surprised there isn't a sort magic method

murphygreen
visit shbcf.ru