B
4

I put a semicolon in the wrong spot in my Python script and it ran anyway

3 comments

Log in to join the discussion

Log In
3 Comments
king.robin
king.robin15d ago
Saw a meme about Python forgiving semicolons like a chill friend.
8
leo_fisher
leo_fisher15d ago
Yeah that semicolon thing happens. I just run the code and see what breaks, then fix it from there.
5
kellyjones
kellyjones15d ago
Back in my first coding class I was obsessed with getting every semicolon perfect before hitting run. @leo_fisher your method is honestly smarter, it saves so much time. Now I just write the logic first and let the compiler point out the tiny syntax stuff. It feels like working with the tools instead of fighting them. That shift made me way less stressed about writing code.
1