Advertisement
Guest User

Untitled

a guest
Aug 4th, 2011
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. im_outside = 42
  2.  
  3. def afunction():
  4.     print "Here is an outside variable as seen from a function: %d" % im_outside
  5.  
  6. print "Here is a variable I can see: %d" % im_outside
  7. afunction()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement