Last active
October 13, 2019 05:29
-
-
Save adrianmarkperea/96e9cf39a50be36b4017f85b9b9d1ab5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# scopes.py | |
# Scope A | |
a = 1 | |
b = 16 | |
def outer(): | |
# Scope B | |
c = 24 | |
d = 'Hello, World!' | |
def inner(): | |
# Scope C | |
e = 'I like' | |
f = 'fried chicken' | |
# (Implicit) Scope D | |
print('Hello!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment