swap function in python inbuilt code example Example: code to swap in python a=5 b=10 a,b=b,a #swapped