input: Write a function to take as input two arrays of integers and swap their elements. Assume the arrays are of the same length. If the arrays are of different lengths, the function should raise an AssertionError.
  
  def swap(arr1, arr2):
      assert len(arr1) == len(arr2)
      for i in range(len(arr1)):
          temp = arr1[i]
          arr1[i] = arr2[i]
          arr2[i] = temp
  
  assert swap([3, 5, 6, 9], [2, 4, 7, 8]) == ([2, 4, 7, 8], [3, 5, 6, 9])
  assert swap([1, 2, 3], [4, 5, 6]) == ([4, 5, 6], [1, 2, 3])
  assert swap([7, 8], [9, 10]) == ([9, 10], [7, 8])
  assert swap([0], [0]) == ([0], [0])
  assert swap([1, 2, 3, 4], [5, 6, 7, 8]) == ([5, 6, 7, 8], [1, 2, 3, 4])
output: def swap(arr1, arr2):
      assert len(arr1) == len(arr2)
      for i in range(len(arr1)):
          temp = arr1[i]
          arr1[i] = arr2[i]
          arr2[i] = temp