input: Write a function to swap the elements of two arrays of integers. The function should ensure that both arrays have the same length before swapping. If the arrays do not have the same length, the function should raise an AssertionError.
  assert swap([3, 5, 6, 9], [2, 4, 7, 8])==None
  assert swap([3, 5, 6], [2, 4, 7])==None
  assert swap([3, 5], [2, 4, 7]) raises AssertionError
output: def swap(arr1, arr2):
      assert len(arr1) == len(arr2), "Arrays must have the same length"
      arr1[:], arr2[:] = arr2[:], arr1[:]