input: Write a function to sort an array of integers and print the sorted array. If the input array is empty, print an empty list.
  
  def sort_and_print(arr):
      if not arr:
          print([])
      else:
          arr.sort()
          print(arr)
  
  assert sort_and_print([17, 41, 5, 22, 54, 6, 29, 3, 13])==None
  # Output: [3, 5, 6, 13, 17, 22, 29, 41, 54]
output: def sort_and_print(arr):
      if not arr:
          print([])
      else:
          arr.sort()
          print(arr)