>>> a = ["foo", "bar", "baz"]
>>> for i in reversed(a):
... print(i)
...
or
>>> for i, e in reversed(list(enumerate(a))):
... print(i, e)
a = ["foo","bar","baz"]
for i in range(len(a)-1,-1,-1):
print(a[i])
a = [0, 0, 4]
for i, e in reversed(list(enumerate(a))):
print(i, "=", e)