Community member
LucasVD
Member since August 2025 · last post 25 Oct, 19:27
- 7 threads
- 51 comments
- 6 solutions
- 188 upvotes received
Counts public posts in this language only.
Latest threads
Latest comments
-
In RuntimeError: dictionary changed size during iteration
Same applies to lists, except lists don't warn you — they just skip elements silently. Even worse!
-
In zip() silently dropping data scared me
strict=True! Using that from now on.
-
In How do you remember all the syntax?
Completely normal. Nobody remembers everything — experienced devs look things up all day. You'll remember what you use often, and look up the rest. The skill is knowing what to look up.
-
In Book or videos — what worked for you?
+1 for Automate the Boring Stuff. It's also free to read online.
-
In How strict should valid_email be?
That one-liner is gold. Using it everywhere now.
-
In Why does print need brackets? Old tutorial doesn't use them
Same thing happened to me with a YouTube video from 2014. Check the date before following anything 🙂
-
In continue vs wrapping everything in an if
Strip before checking for "#" — a comment line with leading spaces otherwise slips through.
-
In Stage 2 says my output doesn't match but it looks identical
Welcome to programming, where one space can ruin your afternoon 😄
-
In if __name__ == "__main__": — what is this for?
Without it, importing a module runs all its top-level code, which can be surprising (prints, file writes...).
-
In round(2.5) is 2?? Is this a bug?
Not a bug — Python uses "banker's rounding" (round half to even): exact .5 cases go to the nearest even number. So round(2.5) is 2, round(3.5) is 4. It avoids a systematic upward bias when you round lots of values.