Source Code:
(back to article)
my_list = [1, 2, 3, 4] my_list.reverse() print(my_list) # prints [4, 3, 2, 1]
Result:
Report an issue