English

Define the following: Exception Handling - Computer Science (Python)

Advertisements
Advertisements

Question

Define the following:

Exception Handling

Short/Brief Note
Advertisements

Solution

Writing additional code in a program to give proper messages or instructions to the user on encountering an exception, called exception handling.

try:
   statements
except Exception_Name:
   statements for handling exception
shaalaa.com
Handling Exceptions in Python
  Is there an error in this question or solution?
Chapter 1: Exception Handling in Python - Exercise [Page 17]

APPEARS IN

NCERT Computer Science [English] Class 12
Chapter 1 Exception Handling in Python
Exercise | Q 5. a) | Page 17
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×