Problem Statement
How do you sort students by name ascending, then score descending in one pass?
Explanation
Provide a tuple key where the first element sorts by name ascending and the second uses negative score to get descending order.
cmp is not supported directly in Python 3, and sorting twice works but is less direct here.
Code Solution
SolutionRead Only
students = sorted(students, key=lambda s: (s.name, -s.score))
