>>> def confusion(i): ... i = i + 1 ... print "i: ", i ... >>> i = 3 >>> confusion(i) i: 4 >>> print i 3