# Use the reversed function:
xs = [0, 10, 20, 40]
for i in reversed(xs):
print(i)
# To get a reversed list:
list(reversed(xs))
[40, 20, 10, 0]
# Making a new list
myList = [1,2,3,4]
# Inverting the list
myList = myList[::-1]
my_rev_list = my_list[::-1]