title: Python- My for loop only converts half the list from str to int
body: <p>I want my code to cycle through each item of the list and convert it from str to int but it only converts half of the list and in an irregular order.
  My code:</p>
  
  <pre><code>for item in list:
      list.append(int(item))
      list.remove(item)
  print (list)
  </code></pre>
  
  <p>For example if list is ['5', '6', '3', '5', '6', '2', '6', '8', '5', '4', '2', '8']</p>
  
  <p>The final would be ['6', '8', '5', '4', '2', '8', 3, 6, 2, 6, 5, 5]</p>
  
  <p>Which is only half converted and not in order.</p>
  
  <p>I could do it another way but that is a lot longer so would like to fix this and add to my knowledge about for loops.</p>
  
  <p>My knowledge and experience with Python is tiny, so I most probably won't understand unless it's really basic and jargon is explained.</p>