a = 2
b = 4
print "a = ",a,"b = ",b

# One liner swap of variable using tuples

(a, b) = (b, a)
print "a = ",a,"b = ",b

# To improve the readability 
# you can write the tuple 
# without parenthesis, as
a, b = b, a
