📢
12

Honestly, my first Python script took me 3 hours to write and it was 50 lines long

Tbh, I tried the same simple task last week after practicing for a month. Ngl, I rewrote it in about 15 minutes and got it down to 10 lines. The big change was finally understanding list comprehensions and using the right built-in functions. Before, I was writing a whole loop just to filter a list, which was way too much code. Has anyone else had a moment where one new concept just made a bunch of your old code look silly?
2 comments

Log in to join the discussion

Log In
2 Comments
grantl94
grantl942mo ago
Remember my 200-line "hello world" script?
2
julia622
julia6222mo ago
Wasn't that the most beautiful code ever, @grantl94?
4