input: from typing import List
  
  def sum_list(input_list: List[float]) -> float:
      """ Calculates the sum of all elements in a given list.
      >>> sum_list([1.0, 2.0, 3.0])
      6.0
      >>> sum_list([0.5, 2.5, -1.0])
      2.0
      """
output:     total = 0.0
      for num in input_list:
          total += num
      return total