input: Write a function to swap the elements of two input arrays of integers. The function should take as input two arrays and swap their corresponding elements. If the two arrays do not have the same length, 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]) is None
  assert swap([1, 2], [3, 4]) is None
  assert swap([4, 5], [6, 7]) is None
  assert swap([], []) is None
  assert swap([1], [2]) is None
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