input: def sum_list(lst):
      """Calculate the sum of elements in the given list.
      >>> sum_list([1, 2, 3, 4, 5])
      15
      >>> sum_list([0, -1, 1, 3, -3])
      0
      """
output:     total = 0
      for num in lst:
          total += num
      return total