My for loop ran fine on 10 items and died on item 347, here is what tripped me
I was at the kitchen table last Tuesday running a little Python script to clean up a list of 900 names I had pasted from a spreadsheet, and it worked great for the first 346 of them. Item 347 had an extra quote mark buried in it, and the whole thing crashed with an IndexError I did not understand at all. I had no clue what a traceback was, so I just sat there rereading my 5 lines of code for way too long before I realized the traceback was literally telling me the line number. Turned out I was grabbing characters by position and the bad quote shifted everything over. How do you all handle messy input data when you are just starting out, do you check it first or just let it break and learn from the error?