I want to make a for loop in python to go over a list. However, I would like to have it going through the list in the opposite direction. For example
foo = [1a,2b,3c,4d]
for number in foo:
print number
the result of this code should be: 4d 3c 2b 1a and not 1a 2b 3c 4d.
Any elegant way to do this? Or is it best to reorder the initial list itself?
Many thanks for your advice