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