input: Write a function to optimize the given Python program that prints each number in a list on a new line. If the provided input is an empty list, the function should not return any output.
  assert optimize_print([1, 2, 3, 4, 5, 6])==None
  assert optimize_print([])==None
  assert optimize_print([10, 20, 30])==None
output: def optimize_print(lst):
      if lst:
          for num in lst:
              print(num)