The sorted() Function for Ordering Collections in Python


Create a new sorted list from the elements of any iterable.

Source Code

sorted_numbers = sorted(numbers)
print(sorted_numbers)
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments