ABSTRACT

An exception is an unusual situation that terminates the execution of the program. Whenever an exception happens, the program blocks the execution. There is a way to handle the exception. An exception is the runtime error that is incompetent to handle to Python program. If there is no code to deal with the exception, the interpreter doesn’t execute the code that appears after the exception.