Getting the first element in string/list
<p>OK, I have file with this data:</p>

<pre><code>data = """4,sons,hey,what,Z,U   
          3,dogs,watch,who,U,H
          2,times,did,1,won,G"""
</code></pre>

<p>I'm wondering, How can I extract the first element from this data?</p>

<p>In this case first place is number so I tried:</p>

<pre><code>filter(str.isdigit, data)
</code></pre>

<p>but since I have other numbers in data its not working for me. Any new ideas?</p>
