Python Programming - Exception Handling - Discussion
Discussion Forum : Exception Handling - General Questions (Q.No. 10)
10.
What is the purpose of the
finally
block in Python exception handling?
Answer: Option
Explanation:
The
finally
block contains code that will be executed no matter what, whether an exception is raised or not. It is useful for cleanup operations or releasing resources.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers