Created
February 28, 2022 16:48
-
-
Save maxfischer2781/5ec583869310d1368fbb2879b69ce422 to your computer and use it in GitHub Desktop.
Demonstrator for except clause deleting its target
This file contains hidden or 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
v = "Hello World" | |
def scope(): | |
global v | |
try: | |
1/0 | |
except ZeroDivisionError as v: | |
pass | |
print(v) | |
scope() | |
print(v) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment