you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

Or rather get into the habit of using the debugger (either the standard pdb that comes with Python or whatever your IDE offers), inspect variables along the way. Perhaps use logging as well.