Skip to content

Instantly share code, notes, and snippets.

@vipul-sharma20
Created March 26, 2016 05:12
Show Gist options
  • Save vipul-sharma20/8e215b29cb948985d639 to your computer and use it in GitHub Desktop.
Save vipul-sharma20/8e215b29cb948985d639 to your computer and use it in GitHub Desktop.
Python's nest
def wrapper():
wrapper_a = 10
def inner():
print wrapper_a
return inner
wrapper()
"""
Output:
10
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment