Python Programming - Exception Handling - Discussion
Discussion Forum : Exception Handling - General Questions (Q.No. 4)
4.
In Python, what is the purpose of the
else
block in exception handling?
Answer: Option
Explanation:
The
else
block is executed only if no exceptions are raised in the associated "try" block. It is used to specify code that should run when there are no exceptions.
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