मराठी

Define the following: Catching an exception - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Define the following:

Catching an exception

टीपा लिहा

उत्तर

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 exception
shaalaa.com
Handling Exceptions
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1: Exception Handling in Python - Exercise [पृष्ठ १७]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 12
पाठ 1 Exception Handling in Python
Exercise | Q 5. c) | पृष्ठ १७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×