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.0, 2.0, 3.0])
      6.0
      >>> sum_array([4.0, 5.0, 6.0])
      15.0
      """
      return sum(array)
  
output:     
      total = 0.0
      for num in array:
          total += num
      return total
  