
Predict
The Cleanup Crew
finally promises to run even when the function is already on its
way out with return. Let's test that promise.
def light(x):
try:
return int(x) * 2
except ValueError:
return -1
finally:
print("checked", x)
print(light("4"))
print(light("four"))