input: Write a function to take as input two arrays of integers and swap their elements. The function should assert that the lengths of the two arrays are the same before performing the swap. If the lengths are not the same, the function should not perform the swap.
  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]) == None
  assert swap([1, 2, 3, 4], [5, 6, 7, 8]) == None
  assert swap([10, 20, 30], [40, 50, 60]) == None
  assert swap([1], [2]) == None
  assert swap([], []) == 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