Bugs
Error/flaw that leads to malfunction
Syntax error
incompatibility with syntax of programming language
Run time error
python understands what you are saying but runs into trouble when following your instructions
logic error
design error, code runs but doesn’t do what it’s supposed to
Debugging
process of systematically finding and fixing bugs
PEP8
no more than 79 characters per line
4 spaces per indent
Call stack
Defensive programming
General approach to debugging
Verbosity
if verbosity statement in front of each print statement depending on each verbosity, different print statements will be executed
logging library
debug
Inspecting run state with codde
Starred arguments
* * = unpacked into individual keyword arguments
Map function
applies function to all items in input list
map(function, input list)
Common run-time exceptions
Stacking