Community member
JackStack
Member since October 2025 · last post 26 Oct, 15:10
- 12 threads
- 55 comments
- 12 solutions
- 255 upvotes received
Counts public posts in this language only.
Latest threads
Latest comments
-
In How do you remember all the syntax?
help(range) in the console is underrated. Quick and offline.
-
In How does the checker test a "live" countdown?
Passing the clock in as a parameter. That's a really useful pattern.
-
In Why is decimals keyword-only?
Oh! That's why print(1, 2, " ") doesn't change the separator. It all connects.
-
In Why does print need brackets? Old tutorial doesn't use them
The error message even tells you: Missing parentheses in call to 'print'. Did you mean print(...)? Python 3 knows this mistake is common.
-
In Stage 2 — removing the length check feels wrong Solution
Both styles exist: "look before you leap" (check first) and "easier to ask forgiveness" (try and catch). Python leans towards the second when one try block can cover several failure modes — here, wrong field count and b…
-
In Different error messages for pass 2 and pass 3 Solution
Pass 3 is empty, so mean() fails first. Pass 2 has one reading — mean and median work, but standard deviation needs at least two values. The message tells you which function failed first, and printing str(error) gives y…
-
In IndexError: list assignment index out of range
So [0] only works if there's already something at 0. Got it.
-
In Why "is None" and not "== None"? Solution
None is a singleton, so is checks identity, which is exact and fast. == can be overridden by objects to return weird things. PEP 8 recommends is None.
-
In split(maxsplit=3) — what does it do?
Perfect for "fixed fields + free text" formats.
-
In Is fuel_kg -= burn_1 the same as fuel_kg = fuel_kg - burn_1? Solution
Yes, for numbers they're the same. -= reads the current value, subtracts, and stores the result back. Same for +=, *=, /=.