input: Write a function to generate numbers from a given list using a Python generator. The generator should yield each number from the input list in sequence. The function should be named list_generator and take a single parameter input_list.
  
  assert list(list_generator([1, 3, 5, 7, 9])) == [1, 3, 5, 7, 9]
  assert list(list_generator([2, 4, 6, 8, 10])) == [2, 4, 6, 8, 10]
  assert list(list_generator([])) == []
  assert list(list_generator([0])) == [0]
  assert list(list_generator([-1, 0, 1])) == [-1, 0, 1]
output: def list_generator(input_list):
      for num in input_list:
          yield num