There are several options you have to debug code. You can use simple print() statements to display the values of variables in different locations of your code or use ...
"* important to distinguish between using __`pdb`__ to run or step through a program, vs. using __`pdb`__ in post-mortem mode, to determine why a program crashed\n", " * we will demonstrate both..." " ...