Question 1 of 5
What does sorted([3, 1, 2]) return?
sorted creates a new list in sorted order.
sorted([3, 1, 2]) returns [1, 2, 3].
Review this lesson
Check your understanding of sorted(), key functions, reverse ordering, stable sorting, and list.sort().
Knowledge check
Check your understanding of sorted(), key functions, reverse ordering, stable sorting, and list.sort().
You can retake this quiz whenever you like.
Question 1 of 5
Question 2 of 5
Question 3 of 5
Question 4 of 5
Question 5 of 5