lista iteracji Python odwrotna
for item in my_list[::-1]:
print item
pi junky
for item in my_list[::-1]:
print item
>>> a = ["foo", "bar", "baz"]
>>> for i in reversed(a):
... print(i)
...
or
>>> for i, e in reversed(list(enumerate(a))):
... print(i, e)
a = [0, 0, 4]
for i, e in reversed(list(enumerate(a))):
print(i, "=", e)