Community member
ElaKowalska
Member since November 2025 · last post 22 Oct, 21:37
- 8 threads
- 15 comments
- 1 solutions
- 71 upvotes received
Counts public posts in this language only.
Latest threads
Latest comments
-
In What should be the next challenge theme?
Space station life support: oxygen, water recycling, alarms. Good for simulations and classes.
-
In Why does print need brackets? Old tutorial doesn't use them
Ugh, it was a gift. Guess I'll use it for the explanations only.
-
In Real use for modulo besides even/odd?
Also checking divisibility, like whether a year might be a leap year: year % 4 == 0 (plus the 100/400 rules).
-
In KeyError when reading a key that may not exist
Perfect, thanks.
-
In The evening record contains the morning reading?!
This is the one I always mention when people say Python has no gotchas 😄
-
In Best space books for programmers?
Second The Martian. I wrote a little script to check his potato calorie maths after reading it.
-
In Does my prediction need to be correct?
Good to know, I was worried I'd "failed" something.
-
In What are the / and * in function signatures?
Huh, never seen the slash in tutorials.
-
In backup = crew doesn't copy?!
So variables are labels, not boxes. That changes how I think about everything.
-
In Safely reading deep nested keys
Chain .get() with empty dicts as defaults: name = mission.get("crew", {}).get("commander", {}).get("name", "unknown") Readable for 2–3 levels. Deeper than that, it's worth writing a small helper function or checking the…