input: Write a function to optimize the given Python program by simplifying the printing of elements in a list. If the input list is empty, print an empty line.
  assert optimize_print([1, 2, 3, 4, 5, 6])==None
  assert optimize_print([])==None
output: def optimize_print(lst):
      if lst:
          print(*lst, sep='\n')
      else:
          print()