Sorting strings

sorted(['9', '10']) → ['10', '9']

You can also choose a level by clicking its number.

About the course

Description
How the sorted() function sorts strings – character by character from the left, capital letters before lowercase ones, by length with key=len
More information
Arrays are indexed from zero. Sorting is ascending (from the smallest) unless stated otherwise.
Sample question
sorted(['9', '10']) → ['10', '9']
Author
Jiří Preisler
Version
1.0