title: Python - Convert String into Iterable Integer List
body: <p>I am developing a Twitch Python IRC Bot that has a currency system. The balances of users are stored in a list, which is loaded from and saved to a text file. However, because the text file's content is loading into one singular string that is then placed inside the list, I cannot iterate through each entry in the string to add points to it. For example, here is the iterable list I'm looking for: <code>[10, 21, 42, 5]</code></p>
  
  <p>But, when this is saved to a text file and then loaded into the list, it turns out like this: <code>['10, 21, 42, 5', '0'</code> (with a 0 entry added on). As you can see, this would iterate through the list with only recognizing 2 sections, which is where the quotations surround. Is there a way I can convert the string fetched from the text file into a list of <strong>integers</strong> that I can iterate through? Thanks in advance!</p>