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