I am trying to reverse the index given by enumerate whilst retaining the original order of the list being enumerated.
enumerate
Assume I have the following:
import itertools def reversed_enumerate(seq): return itertools.izip(reversed(range(len(seq))), reversed(seq))
Substitute zip for itertools.izip :)
zip
itertools.izip