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