input: Write a python function to swap two variables and verify the swap using assertions.
  assert swap(1, 2) == (2, 1)
  assert swap('a', 'b') == ('b', 'a')
  assert swap([1, 2], [3, 4]) == ([3, 4], [1, 2])
output: def swap(a, b):
      return b, a