मराठी

The else part of try-except-else executes: -

Advertisements
Advertisements

प्रश्न

The else part of try-except-else executes:

पर्याय

  • Irrespective of whether an exception occurs or not

  • When an exception is encountered

  • When no exception is not encountered

  • When code of except block is executed

MCQ

उत्तर

When no exception is not encountered

Explanation:

Finally, when no exception is encountered, the try-except-else statement is executed.

shaalaa.com
Handling Exceptions
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×