finally statement => to ensure some code runs no matter what errors occur
finally statement is placed at the bottom of a try/except statement
Code in a finally statement even runs if an uncaught exception occurs in one of the preceding blocks
try - except - finally
No comments:
Post a Comment