input: 
  from typing import List
  
  def sum_of_digits(numbers: List[int]) -> List[int]:
      """ Given a list of numbers, calculate the sum of the digits for each number and return a list of these sums.
      >>> sum_of_digits([6342, 1234, 5678])
      [15, 10, 26]
      >>> sum_of_digits([123, 45, 6789])
      [6, 9, 30]
      """
  
output:     result = []
      for number in numbers:
          digit_sum = sum(int(digit) for digit in str(number))
          result.append(digit_sum)
      return result