input: Write a function to sort and print out the elements of an array of integers. The function should take an array as input, sort the array in ascending order, and then print the sorted array. If the array is empty, it should print an empty array.
  assert sort_and_print([17, 41, 5, 22, 54, 6, 29, 3, 13]) == "[3, 5, 6, 13, 17, 22, 29, 41, 54]"
  assert sort_and_print([]) == "[]"
  assert sort_and_print([9, 8, 7, 6, 5, 4, 3, 2, 1]) == "[1, 2, 3, 4, 5, 6, 7, 8, 9]"
  assert sort_and_print([3, 3, 3, 3, 3]) == "[3, 3, 3, 3, 3]"
  assert sort_and_print([-5, -10, 0, -3, 8]) == "[-10, -5, -3, 0, 8]"
output: def sort_and_print(arr):
      sorted_arr = sorted(arr)
      print(str(sorted_arr))