method 1:

a,b = b,a

method 2:

a = a+b 
b = a-b 
a = a-b