Hot take: a single missing comma ate 4 hours of my Saturday
I spent 4 hours last Saturday chasing a bug in a tiny Python script that was supposed to just read a list of names from a text file and print them sorted. The script kept failing with a "list index out of range" error and I had no clue why. I rewrote the loop three times, added print statements everywhere, and even restarted my laptop thinking it was some weird memory thing. Turns out my list had a trailing comma after the last name, which made Python think there was one extra empty item on the end. I found it by accident when I printed the length of the list and it was 6 instead of 5. Four hours, gone, over one little comma at the end of line 12. Now I always print len() first when something loops weird. Has anyone else lost a chunk of a day to a dumb syntax thing like that?