input: 
  def sum_elements(data: List[int]) -> int:
      """ Calculate the total sum of all elements in the given list.
      >>> sum_elements([1, 9, 3, 5])
      18
      """
  
output:     total = 0
      for num in data:
          total += num
      return total