हिंदी

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×