input: Write a function to create a generator that yields numbers from a given list. The generator should be used to iterate through the list and print each number. If the given list is empty, no numbers should be printed.
  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 list(list_generator([1,3,5,7,9]))==[1,3,5,7,9]
  assert list(list_generator([]))==[]
output: def list_generator(input_list):
      for item in input_list:
          yield item