input: from typing import List
  
  
  def sum_digits(num: int) -> int:
      """ Calculate the sum of the digits in a given number.
      >>> sum_digits(123)
      6
      >>> sum_digits(4567)
      22
      """
      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