title: Iterate over digits of number
body: <p>I have a string input, such as <code>100124</code>. I want to evaluate each digit of the string as an integer, so I do:</p>
  
  <pre><code>for c in string:
      c = int(c)
      # do stuff with c
  </code></pre>
  
  <p>Is there a syntactically better way to do this? I tried doing <code>string = int(string)</code> before the loop, but a number isn't iterable.</p>