python: changing the value of a specific column in 2-d list
<p>I have a 2-d list (list of 2-tuples):</p>

<pre><code>results = [("a", 0.1234), ("b", 0.32345), ("c", 0.54321)]
</code></pre>

<p>and I would like to change it to be:</p>

<pre><code>&gt;&gt; [('a', '12.34'), ('b', '32.34'), ('c', '54.32')]
</code></pre>

<p>My thought was to do something like this:</p>

<pre><code>results = [(x[0], "%.2f" % (x[1] * 100)) for x in results]
</code></pre>

<p>And it works, is there a better way of doing it (according to <code>import this</code> guidelines), as it seems that accessing the value <code>x[0]</code> is <s>not efficient</s> ugly. btw - I can change it to be a list of lists instead of tuples, if that changes anything e.g:</p>

<pre><code>results = [["a", 0.1234], ["b", 0.32345], ["c", 0.54321]]
</code></pre>

<p>and respectively:</p>

<pre><code>&gt;&gt; [['a', '12.34'], ['b', '32.34'], ['c', '54.32']]
</code></pre>
