5/30
Part 1 of 7 · Score orderWatch
Watch · 4 min
Python's key parameter, first with abs from 6:21, then on a list of employee objects that won't sort without one from 7:26, and reverse=True next to a key at 9:34. He sorts on one attribute at a time. This part's key is a tuple, so a tie on the score falls to the title, and reverse=True would flip that tie-break too.
Python Tutorial: Sorting Lists, Tuples, and Objects · Corey Schafer · Dec 2015YouTube