In Python programming, there are primarily two sorts of mistakes: Syntax errors and Logical mistakes or Exceptions. The Python interpreter throws a syntax error when the appropriate syntax of the Python programming language (or any other language) is not used.