input: Write a function to create a Python generator that returns numbers from a given list. The function should iterate through the list and yield each number one by one. If the input list is empty, the generator should not yield any values.
  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