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:
Assuming your list is not long and you will not run into performance errors, you may use list(enumerate(range(5)[::-1]))[::-1].
list(enumerate(range(5)[::-1]))[::-1]
Test:
>>> list(enumerate(range(5)[::-1]))[::-1] [(0, 4), (1, 3), (2, 2), (3, 1), (4, 0)]