input: 
  def list_generator(input_list):
      """ Create a Python generator that returns numbers from a given list.
      >>> gen = list_generator([1, 3, 5, 7, 9])
      >>> next(gen)
      1
      >>> next(gen)
      3
      >>> next(gen)
      5
      >>> next(gen)
      7
      >>> next(gen)
      9
      >>> next(gen)
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      StopIteration
      """
      for item in input_list:
          yield item
  
output:     for item in input_list:
          yield item