input: from typing import List
  
  def list_generator(input_list: List) -> int:
      """Creates a generator that yields each number from a given list.
      >>> gen = list_generator([1, 3, 5, 7, 9])
      >>> for item in gen:
      ...     print(item)
      1
      3
      5
      7
      9
      """
      for item in input_list:
          yield item
output:     return sum(item for item in input_list)