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