Delete the first elements of each row in list in python2.7
<p>My list looks like:
['0 0.690001', '1 0.970671', '2 1.520989', '3 1.946516', '4 2.229378']</p>

<p>how can I get 
[ 0.69000,0.970671,1.520989,1.946516,2.229378]</p>

<p>Use list comprehension as:</p>

<pre><code>my_list = ['0 0.690001', '1 0.970671', '2 1.520989', '3 1.946516', '4 2.229378']
[float(item.split()[1]) for item in my_list]
</code></pre>

<p>OR, you may also use <code>map()</code>:</p>

<pre><code>map(lambda x: float(x.split()[1]), my_list)
</code></pre>

python python-2.7