Practical Data Science using Python
Sr.No. | Exception Name & Description |
---|---|
1 | Exception Base class for all exceptions |
2 | StopIteration Raised when the next() method of an iterator does not point to any object. |
3 | SystemExit Raised by the sys.exit() function. |
What are the 3 major exception types in Python?
There are mainly three kinds of distinguishable errors in Python: syntax errors, exceptions and logical errors.
What is Exception Handling explain with example?
Exception handling is the process of responding to unwanted or unexpected events when a computer program runs. Exception handling deals with these events to avoid the program or system crashing, and without this process, exceptions would disrupt the normal operation of a program.