Exception Handling
Exception Handling
A run-time error occurs after Python interpreter interprets the code you write and the
computer,begins to execute it. Run-time errors come in different types and some are hard to
find.
Some examples of Python run-time errors are:
1. Division by zero
2. Performing an operation on incompatible types
3. Using an identifier variable which has not been defined
4. Accessing a list element, dictionary value or object attribute which doesn’t exist
5. Trying to access a file that doesn’t exist