input: from typing import List
  
  def sum_digits(num):
      """Calculates the sum of the digits in a given number.
      >>> sum_digits(12345)
      15
      >>> sum_digits(9876)
      30
      """
      total = 0
      while num > 0:
          digit = num % 10
          total += digit
          num = num // 10
      return total
output:     total = 0
      while num > 0:
          digit = num % 10
          total += digit
          num = num // 10
      return total