input: from typing import List
  
  def sum_list(list: List[int]) -> int:
      """ Sum all the elements in the given list.
      >>> sum_list([1, 2, 3])
      6
      >>> sum_list([10, 20, 30])
      60
      """
output:     total = 0
      for num in list:
          total += num
      return total