Source Code:
(back to article)
fruits = ["banana", "apple", "orange"] fruits.reverse() print(fruits) # Output: ["orange", "apple", "banana"]
Result:
Report an issue