PYTHON CORE · LESSON 39
Sorting
Function sorted · about 10 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Dial the list and display a sorted copy.
nums = [4, 2, 3]
print(sorted(nums))Open the editor for class workSolve it yourself
Create nums from 3, 1, 2 in this order. Introduce a new sorted list through sorted.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework