Which block always runs, whether or not an exception occurred in Python?
Correct answer
C. finally
12 views
C. finally
12 views
finally executes for cleanup regardless of exceptions.
Asked in: Python Interview Exception Handling
https://docs.python.org/3/tutorial/errors.htmlNot sure why the answer is C? Ask here and get an explanation.