input: Write a function to optimize the given Python program by eliminating the loop and using a more efficient method to print each element of the list on a new line. If the list is empty, the function should return an empty string.
  
  
  assert optimize_print([1, 2, 3, 4, 5, 6])=="""1
  2
  3
  4
  5
  6"""
  assert optimize_print([])==""
  assert optimize_print([10, 20, 30])=="""10
  20
  30"""
  
output: def optimize_print(lst):
      return '\n'.join(map(str, lst)) if lst else ""