New course! Every coder should learn Generative AI!
Try a free lesson1 Answer
+ 6
yes!
yes!
Source:
try:
def hu():
print('yes!')
5/0
except:
hu()
finally:
hu()
(of course this will only work if the function is defined before the exception is raised)