title: Changing data types within a list of lists
body: <p>I have a list of 50 lists each sub-list has 5 elements. What I want to do is take the 2nd element and change it from a string into an integer for 49 of the lists. </p>
  
  <pre><code>for i in range(len(Data)):
      Data[i] = Data[i].strip()
      Data[i] = Data[i].split(',')
      Data[i] = int(x) for x in Data[[1:][1]]
  </code></pre>
  
  <p>In my mind this should start with element 2 of the main list and then change element 1 into an integer for all the lists. Hints the range 1: </p>
  
  <p>But obviously this is not working  </p>
  
  <p>Each list inside the list has an element 0 a state name and element 1 state population. I want to sum the state populations. But first I need to switch the population figure from a string to an integer. </p>
  
  <p>First element of the list is:</p>
  
  <p>[['Alabama', '4802982']</p>
  
  <p>I want to change '4802982' to an integer. So I can use the sum function. And sum the rest of the 49 states (each following list)  </p>