F
31

Just realized my first Python script ran 100 times without crashing

I made a simple script to rename a bunch of image files. It was just a for loop and some string stuff. I ran it on a folder with 100 pictures last night. It worked on every single one. I was sure it would break on file number 50 or something. That's the first time something I wrote actually finished the job. Feels like a real win. Has anyone else had a small program just... work?
3 comments

Log in to join the discussion

Log In
3 Comments
sean48
sean4811d ago
That trust fall feeling is real.
3
laura_wilson
Know that feeling, it's like the planets finally align. I get it with my old truck sometimes, you fix one thing expecting three others to go wrong, and then it just... runs fine. That first clean run of a script is a special kind of trust fall with your own brain.
1
jesse_lopez14
Totally! Save that script version right now.
2