input: Write a function to calculate the total sum of all elements in the given list using a for loop in Python.
  
  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([0, -1, 2, -3]) == -2
  assert calculate_total([]) == 0
  assert calculate_total([4]) == 4
  assert calculate_total([10, 10, 10]) == 30
output: def calculate_total(data):
      total = 0
      for element in data:
          total += element
      return total