input: Write a function to calculate the total sum of all elements in a given list using a for loop. The function should return the total sum.
  def calculate_total_sum(data):
      total = 0
      for element in data:
          total += element
      return total
  
  assert calculate_total_sum([1, 9, 3, 5]) == 18
  assert calculate_total_sum([0, 2, 4, 6]) == 12
  assert calculate_total_sum([-1, -2, -3, -4]) == -10
  assert calculate_total_sum([]) == 0
output: def calculate_total_sum(data):
      total = 0
      for element in data:
          total += element
      return total