title: Python: List to integers
body: <p>I have read a file in and converted each line into a list. A sample of the list looks like:</p>
  
  <p>['15', '2', '0'], ['63', '3', '445', '456' '0'], ['23', '4', '0']</p>
  
  <p>i want to retrieve the first number from each list and convert it to and integer so when i carry out the type function i.e.</p>
  
  <pre><code>type(x) 
  &lt;type 'int'&gt; is returned
  </code></pre>
  
  <p>Also when i print x the integers are printed individually rather than joined. i.e. if i took the first 3 numbers from the list above the numbers are not printed as: </p>
  
  <blockquote>
    <p>156323</p>
  </blockquote>