Skip to content

Instantly share code, notes, and snippets.

@maxfischer2781
Created February 28, 2022 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxfischer2781/5ec583869310d1368fbb2879b69ce422 to your computer and use it in GitHub Desktop.
Save maxfischer2781/5ec583869310d1368fbb2879b69ce422 to your computer and use it in GitHub Desktop.
Demonstrator for except clause deleting its target
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