error handling in python introduction to error handling so far error messages haven' been discussed you could say that we have kinds of errorssyntax errors and exceptions syntax errors below we see an example of syntax errorsp world " world syntaxerror syntax in the example we have written print(hello worldinstead of print("hello world"and then the python interpreter gives us an error message exceptions even if statement or expression is syntactically correctit may cause an error when an attempt is made to execute it errors detected during execution are called exceptions and are not unconditionally fatalyou will soon learn how to handle them in python programs most exceptions are not handled by programshoweverand result in error messages as shown here traceback most last " by or traceback most last