runtime errors in python code example

Example 1: runtime errors in python

Some examples of Python Runtime errors −

 

division by zero
performing an operation on incompatible types
using an identifier which has not been defined
accessing a list element, dictionary value or object attribute which doesn’t exist
trying to access a file which doesn’t exist

Example 2: runtime errors in python

Misspelled or incorrectly capitalized variable and function names

-Attempts to perform operations (such as math operations) on data of the wrong type (ex. attempting to subtract two variables that hold string values)
-Dividing by zero
-Attempts to use a type conversion function such as int on a value that can’t be converted to an int