Created
April 3, 2019 06:55
-
-
Save worldmind/f6caf6da5dcc5d7d4bc552b412bbf7aa to your computer and use it in GitHub Desktop.
Loop scope
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
def main(): | |
y = 0 | |
for k in range(1,3): | |
z = k | |
def inside_main(): | |
print(y) | |
print(z) | |
print(k) | |
inside_main() | |
if __name__ == '__main__': | |
main() |
Author
worldmind
commented
Apr 3, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment