O
19

I finally got my first Python script to run without errors after 12 attempts

I was stuck for two days trying to write a loop to rename files, and my code kept crashing. I switched from trying to remember everything in my head to writing each step on paper first, and it worked perfectly on the next try. Do you guys make notes before you start coding a new thing?
2 comments

Log in to join the discussion

Log In
2 Comments
the_blair
the_blair1mo ago
Wait, you write it all out on paper first? I just start typing and fix it as I go. Doesn't that take way longer?
3
the_john
the_john1mo ago
Fix it as you go" sounds messy though.
2