title: int object is not iterable while trying to sum the digits of a number?
body: <p>I have this code:</p>
  <pre><code>inp = int(input(&quot;Enter a number:&quot;))
  
  for i in inp:
      n = n + i;
      print (n)
  </code></pre>
  <p>but it throws an error: <code>'int' object is not iterable</code></p>
  <p>I wanted to find out the total by adding each digit, for eg, 110. 1 + 1 + 0 = 2. How do I do that?</p>