SHARE
TWEET

Untitled

a guest Aug 24th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def fun1():
  2.     x = 1
  3.     def fun2():
  4.         print x
  5.     return fun2
  6. f = fun1()
  7. f()
  8. # Output: 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top