Python Debugging
Debugging in any programming language typically involves two types of errors: syntax or logical. Syntax errors are those where the programming language commands are not interpreted by the compiler or interpreter because of a problem with how the program is written. These types of errors cause the program to either stop at the offending code or give a warning or error when the program execution is attempted. Once all of the syntax errors are discovered and corrected, logical errors still allow the program to run to completion but give incorrect results. Logical errors can be corrected by testing multiple conditions to check the correct operations or output of the program. Debugging in Python can either involve print statements or a more sophisticated debugger interface such as Spyder or ipdb.