Advertisements
Advertisements
Question
When will the else part of try-except-else be executed?
Options
always
when an exception occurs
when no exception occurs
when an exception occurs into except block
MCQ
Solution
when no exception occurs
Explanation:
If there is no exception, the else portion is carried out.
shaalaa.com
Handling Exceptions
Is there an error in this question or solution?