Advertisements
Advertisements
प्रश्न
Define the following:
Catching an exception
टीपा लिहा
Advertisements
उत्तर
Catching an exception means handling of an exception by exception handlers. An exception is said to be caught when a code that is designed to handle a particular exception is executed. Exceptions, if any, are caught in the try block and handled in the except block.
try:
statements
except Exception_Name:
statements for handling exceptionshaalaa.com
Handling Exceptions in Python
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
