Community member
NoahLoops
Member since June 2025 · last post 26 Oct, 16:35
- 13 threads
- 62 comments
- 10 solutions
- 285 upvotes received
Counts public posts in this language only.
Latest threads
Latest comments
-
In Should I delete the debug line or comment it out?
Ctrl+/ toggles comments in most editors, including this one. Saves a lot of typing.
-
In Stage 2 — why separate ifs instead of elif?
Same. I'd been using elif everywhere by default.
-
In How does the checker test a "live" countdown?
Same idea as the medical dispenser article — don't trust the clock blindly, control it.
-
In Where to start with a 70-line repetitive script? Solution
Run it first and save the output — that's your safety net. Then extract one function at a time (parse_feed first), run again and compare. Never change behaviour and structure at the same time.
-
In Guard clauses changed how I write functions
Same here. Nested ifs five levels deep are a thing of the past.
-
In How long should variable names be?
The task says no one- or two-letter names, so anything readable passes. Readability is the real goal.
-
In Stage 2 says my output doesn't match but it looks identical
Passed! Didn't think a single space would matter.
-
In Stage 2 says my output doesn't match but it looks identical
I wrote print(" ") for the blank line…
-
In Why "is None" and not "== None"?
Oof, that's exactly what I did first. 0 °C became "NO DATA".
-
In if __name__ == "__main__": — what is this for?
When you run a file directly, Python sets its __name__ to "__main__". When another file imports it, __name__ is the module's name instead. So code inside that if runs only when you execute the file directly, not when it…