6.1 Visualise Your Code
Consider using the (cool) code visualisation tool PythonTutor to observe what happens during the execution of your code.
This ability to slowly step through your code is a common feature in some programming software.
Another site that visualises algorithms is Visualgo.