In Python errors can be of two types: Syntax errors and Exceptions.
Syntax errors is identified during compilation. It occured in coding when the programmer entered spelling mistake in keywords, putting a keyword in the wrong place, leaving out a symbol, such as a colon, comma or brackets, incorrect indentation etc.
Exceptions are the runtime errors that occur in between the program execution. Examples: divide by 0, performing an operation on incompatible types, accessing a list element, dictionary value or object attribute which doesn't exist etc. This type of errors terminates the program execution, to handle it we uses Exception handling (try, except, else and finally block).
Ad: