Community member
PiotrZ
Member since April 2025 · last post 22 Oct, 19:34
- 3 threads
- 15 comments
- 1 solutions
- 69 upvotes received
Counts public posts in this language only.
Latest threads
Latest comments
-
In Integers have no size limit?
Great for factorials and combinatorics. math.factorial(100) just works.
-
In Tkinter window doesn't open in the online editor
Works locally! Nice to finally see a real window app.
-
In Stage 2 — least-busy eligible person
Greedy scheduling — not always optimal, but simple and fair enough for a weekly rota.
-
The challenge asks for 0.5, so stick with it to pass, then try hypot for fun.
-
In Only two methods on tuples?
count() is handy for quick stats, e.g. counting "GO" votes in a tuple of poll results.
-
In UnicodeDecodeError when opening a CSV from Excel
Always pass encoding= explicitly. The default depends on your operating system, so code that works on a Mac fails on Windows.
-
In Stage 2 — JSONDecodeError message
Note that JSONDecodeError is a subclass of ValueError, so except ValueError would also catch it. Being specific is clearer though.
-
In Stage 2 — why track latest_end instead of the previous window's end?
Usuda is JAXA's deep-space station. The station list is a nice touch.
-
In Nine elifs → one dict. So satisfying.
:.0f worked for me.
-
And @dataclass once you need more than that. But that's a later lesson.