Sort with a Key Function
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- easy
- Pro
You have a list of employee records and need them sorted by department, then by salary from highest to lowest. Explain how sorting with a key function works in Python and how you'd do this.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.