def foo(x):
for i in range(x):
for j in range(x):
try:
print(x, i, j, 1)
finally:
print(x, i, j, 2)
1 / 0
print(x, i, j, 3)
break
print(x, i, j, 4)
print(foo(4))