>>> a = ["foo", "bar", "baz"] >>> for i in reversed(a): ... print(i) ... or >>> for i, e in reversed(list(enumerate(a))): ... print(i, e)