# nested exceptions
def f():
try:
foo()
except:
print("except 1")
baz()
print("except 2")
bar()
f()
print("f except")