input: Write a function to create a Python generator that returns numbers from a given list.
  def list_generator(input_list):
      for item in input_list:
          yield item
  
  gen = list_generator([1, 3, 5, 7, 9])
  for item in gen:
      print(item)
  
  assert [item for item in list_generator([1, 3, 5, 7, 9])] == [1, 3, 5, 7, 9]
  assert [item for item in list_generator([2, 4, 6, 8])] == [2, 4, 6, 8]
  assert [item for item in list_generator([]) == []
output: def list_generator(input_list):
      for item in input_list:
          yield item