4
Appreciation post: My simple Python loop bug took me three hours to find
I was trying to make a list of numbers print, but it kept skipping the last one. The issue was a classic off-by-one error in my range function, which I only spotted after checking Stack Overflow. Anyone else get stuck on something that feels obvious later?
2 comments
Log in to join the discussion
Log In2 Comments
the_sam4d ago
Used to think I was immune to those, but now I triple-check my ranges every time lol.
3
rubyreed4d ago
Remember when I thought I was too smart for that?
3