My for loop ate 4 hours on a Tuesday night in Akron
About 3 months into learning Python, I was sitting in my apartment in Akron trying to write a script that renamed a folder full of files. I ran it and nothing happened. No error, no crash, just nothing. So I ran it again. And again. Turns out I had an off-by-one mistake in the loop range, so it kept skipping the last file, and the print statement I forgot to remove was buried in a log I never opened. I sat there for close to 4 hours convinced my editor was broken. A guy in a Discord server finally asked me to paste the loop, spotted it in maybe 10 seconds, and said "your range stops one short, buddy." I felt like a real idiot but also like I finally got it. Now I open the log first before I assume anything is wrong with the tools. Has anyone else lost a night to a bug that was one number off?