title: Trying to find sum of digits between two numbers
body: <p>Trying to figure out how to find the sum of digits between two numbers(including those numbers) using a function in python. </p>
  
  <p>I tried recursion for each individual argument and then subtracted them to compensate for the numbers in between. Then I added these two and got my sum, which is incorrect for every argument unless the digits are below 10. Not sure of the proper way to approach this problem, please help.</p>
  
  <pre><code>def sum_digits(a, b):
  """sum of digits between two numbers"""
    sum = 0
    ones = a - b
    if ones &lt; 0:
      ones = ones * -1
  
  
    if a &gt;= 10 and b &gt;= 10:
      sum += ones
  
  
    while a &gt; 0 and b &gt; 0:
      d = a % 10 + b % 10
      a = a // 10
      b = b // 10
      sum += d
  
    return sum
  </code></pre>