Python Developer — Hard
Key points
- The `sorted` function can take a custom key for sorting.
- The lambda function `-x` sorts the list in descending order.
- Slicing `result[:3]` extracts the first three elements.
- The correct answer is the three largest numbers in descending order.
Ready to go further?
Related questions
