input: Write a function to swap the elements of two given arrays of integers. The function should ensure that the lengths of the two arrays are equal before swapping. If the lengths are not equal, the function should raise an assertion error.
  assert swap([3, 5, 6, 9], [2, 4, 7, 8])==None
  assert swap([1, 2, 3], [4, 5, 6])==None
  assert swap([10, 20], [30, 40])==None
  assert swap([1], [2])==None
  assert swap([1, 2], [3, 4, 5])==AssertionError
output: def swap(arr1, arr2):
      assert len(arr1) == len(arr2), "The lengths of the two arrays are not equal"
      arr1[:], arr2[:] = arr2[:], arr1[:]