Advertisements
Advertisements
प्रश्न
When will the else part of try-except-else be executed?
पर्याय
always
when an exception occurs
when no exception occurs
when an exception occurs into except block
MCQ
उत्तर
when no exception occurs
Explanation:
If there is no exception, the else portion is carried out.
shaalaa.com
Handling Exceptions
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?