zip function in python
<p>In python I have:</p>

<pre><code>    nameh.append([area, hitratio])
    nameh_sorted = sorted (nameh, key=lambda nameh: nameh[0])
</code></pre>

<p>I sorted the [area, hitratio] based on the alphabet of the name of the area. Then I want to zip the sorted "hitratio" with another list "u" into [u1, hitratio1], [u2, hitratio2]...but I don't know how to select the sorted hitratio in this case, the *nameh_sorted[1] is obviously wrong...</p>

<pre><code>user = zip (u,*nameh_sorted[1])
user_sorted = sorted (user, key=lambda user: user[0])
x5, y5 = zip(*user_sorted) 
</code></pre>

<p>Can anyone help? Many thanks</p>
