Python Exception:-
- An exception is an unusal things in a program that cause the interruption in flow of program.
- An exception is the run-time errors that are unable to handle the python program.
- While creating and executing a python script things may go worng at two different stages:-
- During compilation
- During execution
- Error that occurs during compilation time,are called syntax error.The Error that occurs during execution or run time, are called exceptions or run-time error.
- Python provides a way to handle the exception so that the program/codes can be executed without any interruption.
- Python has many built-in exceptions that enable program to run without interruption and give the output of the code.