Last active
October 13, 2019 06:47
-
-
Save adrianmarkperea/3c8e0f945da4b80d4efcd6dd77bde8cc 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
i_am_global = 5 | |
def foo(): | |
i_am_global = 10 | |
print(i_am_global) | |
foo() | |
print(i_am_global) | |
# outputs | |
10 | |
5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment