input: Write a function to optimize the given Python program that prints each element of a list on a new line. The function should modify the program so that it achieves the same output but in an optimized manner.
  assert optimize_print([1, 2, 3, 4, 5, 6])==None
  assert optimize_print([7, 8, 9])==None
  assert optimize_print([10, 20, 30, 40])==None
  assert optimize_print([])==None
  assert optimize_print([1])==None
output: def optimize_print(lst):
      print("\n".join(map(str, lst)))