# # swapping numbers # a, b = input("Type two numbers separated by a comma: "); print "a =", a, "b =", b; # first swap: traditional tmp = a; a = b; b = tmp; print "Traditional swap: a =", a, "b =", b; # now using simultaneous assignment a, b = b, a; print "Simultaneous assignment swap: a =", a, "b =", b