Sorting a dictionary by value
Press Run, then give Linus a better score and run it again.
The key function is doing the work: sorted calls it on every
pair and orders by what it returns. Negating the score puts the highest first.
Press Run, then give Linus a better score and run it again.
The key function is doing the work: sorted calls it on every
pair and orders by what it returns. Negating the score puts the highest first.