input: Write a function to optimize the following Python program by using a more efficient method to print each element of a list on a new line. If the given list is empty then print nothing.
  assert optimize_print([1, 2, 3, 4, 5, 6])==None
  assert optimize_print([])==None
  assert optimize_print([6, 7, 8, 9])==None
  assert optimize_print([10])==None
  assert optimize_print([5, 4, 3, 2, 1])==None
output: def optimize_print(lst):
      for item in lst:
          print(item)