Source Code:
(back to article)
fruits = ['apple', 'banana', 'cherry', 'durian', 'elderberry'] sorted_fruits = sorted(fruits) print(sorted_fruits)
Result:
Report an issue