input: Write a function to create a Python generator that returns numbers from a given list. To test the generator, you can create an instance of it using a specific list, and then iterate over it to print each number.
  assert list_generator([1,3,5,7,9]) is not None
  assert list_generator([]) is not None
output: def list_generator(lst):
      for num in lst:
          yield num