Python enumerate reverse index only
<p>I am trying to reverse the index given by <code>enumerate</code> whilst retaining the original order of the list being enumerated.</p>

<p>Assume I have the following:</p>

<pre><code>&gt;&gt; range(5)
[0, 1, 2, 3, 4]
</code></pre>

<p>If I enumerate this I would get the following:</p>

<pre><code>&gt;&gt; list(enumerate(range(5)))
[(0, 0), (1, 1), (2, 2), (3, 3), (4, 4)]
</code></pre>

<p>However I want to reverse the index provided by enumerate so that I get:</p>

<pre><code>[(4, 0), (3, 1), (2, 2), (1, 3), (0, 4)]
</code></pre>

<p>So far I have the following code:</p>

<pre><code>reversed(list(enumerate(reversed(range(5)))))
</code></pre>

<p>I was just wondering if there was a neater way to do this?</p>