Created
October 13, 2019 03:38
-
-
Save adrianmarkperea/256074c370db22a1855f68f6349e921a 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
a = 1 # namespace {a: 1} | |
# does `a` exist in the namespace? Yes! | |
# proceed without error | |
print(a) # => 1 | |
# does `b` exist in the namespace? No. | |
# Throw a `NameError` | |
print(b) # => NameError: name `b` is not defined. | |
b = 16 # namespace {a: 1, b: 16} | |
# no more problems! | |
print(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment