Login
From:
learnbyexample
(Uncensored)
subscribe
Python tip 33: sorting iterables based on multiple conditions
https://learnbyexample.github.io/tips/python-tip-33/
links
backlinks
In an earlier tip, you learned how to sort iterables based on a key. You can use a sequence like list or tuple to specify a tie-breaker condition when two or more items are deemed equal under the primary sorting rule.
Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Roast topics
Find topics
Find it!