input: Write a function to create a Python generator that returns numbers from a given list. The function should be named `list_generator` and it should take a list as input. The generator should yield each item from the input 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)
output: def list_generator(input_list):
      for item in input_list:
          yield item