input: def sum_digits(num):
      """ Calculate the sum of the digits in a given number.
      >>> sum_digits(123)
      6
      >>> sum_digits(456)
      15
      """
output:     total = 0
      while num > 0:
          total += num % 10
          num //= 10
      return total