T
4

Update: My first Python script was a 50-line monster to rename files

I mean, I wrote it last year before I knew about the 'os' module. Now I do the same thing with maybe 5 lines after watching a tutorial on list comprehensions. Anyone else have a 'before and after' script that makes you laugh?
2 comments

Log in to join the discussion

Log In
2 Comments
mitchell.wren
My first script was a 20 line mess to download cat pictures. I manually typed out every single URL. Found out about loops and the requests library a month later and felt so dumb.
2
paulfisher
Manually typing each URL sounds like the perfect way to learn. You have to feel the pain of doing it the hard way before the easy way really clicks. That month of feeling dumb is what makes you remember loops forever. I wouldn't call it a mess, I'd call it a necessary step.
3