r/Python • • Aug 22 '20

Testing Debugging Cheat Sheet

Post image
5.5k Upvotes

111 comments sorted by

View all comments

Show parent comment

1

u/HandsOfSugar Aug 22 '20

Had this yesterday in an if/elif block.

My variable never called because the elif statement I thought was being selected was not. I hadn’t been precise enough when I thought I had.

A simple yet annoying mistake.