An exception is an error that happens during execution of a program. When that error occurs, Python generate an exception that can be handled by exception handling, which avoids your program to crash.
An exception is an error that happens during execution of a program. When that error occurs, Python generate an exception that can be handled by exception handling, which avoids your program to crash.