Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. def fun1():
  2. x = 1
  3. def fun2():
  4. print x
  5. return fun2
  6. f = fun1()
  7. f()
  8. # Output: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement