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