Login
From:
learnbyexample
(Uncensored)
subscribe
Python tip 21: sorting iterables based on a key
https://learnbyexample.github.io/tips/python-tip-21/
links
backlinks
Roast topics
Find topics
Find it!
You can use the sort() method for sorting lists inplace. The sorted() function can be used to get a sorted list from any iterable.