input: def sum_array(array):
      """A function that takes in an array of numbers and returns the sum of all the numbers
      >>> sum_array([1, 2, 3, 4])
      10
      >>> sum_array([-1, 0, 1])
      0
      """
output:     total = 0
      for num in array:
          total += num
      return total