Rearrange tuple of tuples in Python
<p>I have a tuple of tuples:</p>

<pre><code>t = ((1, 'one'), (2, 'two'))
</code></pre>

<p>I need it in the following format:</p>

<pre><code>((1, 2), ('one', 'two'))
</code></pre>

<p>How can I convert it? I can do something like:</p>

<pre><code>digits = tuple(digit for digit, word in t)
words = tuple(word for digit, word in t)
rearranged = tuple(digits, words)
</code></pre>

<p>But that seems not elegant, I suppose there's a more straightforward solution.</p>
