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