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