im_outside = 42
def afunction():
print "Here is an outside variable as seen from a function: %d" % im_outside
print "But now I'm going to modify it..."
im_outside = 27
print "And here it is: %d" % im_outside
print "Here is a variable I can see: %d" % im_outside
afunction()