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