input: from typing import List
  
  
  def sum_array(array: List[float]) -> float:
      """A function that takes in an array of numbers and returns the sum of all the numbers
      >>> sum_array([1, 2, 3])
      6
      >>> sum_array([0.5, -1.5, 2.0])
      1.0
      """
      return sum(array)
output:     total = 0
      for num in array:
          total += num
      return total