Reversing a nested tuple in python using the function reversed
<p>I have a tuple and would like to reverse it in python. </p>

<p>The tuple looks like this : (2, (4, (1, (10, None)))). </p>

<p>I tried reversing in python by </p>

<pre><code>a = (2, (4, (1, (10, None))))
b = reversed(a)
</code></pre>

<p>It returns me this:</p>

<pre><code>&lt;reversed object at 0x02C73270&gt;
</code></pre>

<p>How do i get the reverse of a? Or must i write a function to do this?</p>

<p>The result should look like this:</p>

<pre><code>((((None, 10), 1), 4), 2)
</code></pre>

<p>Apologies on the earlier part...</p>
