Community member

PiotrZ

Member since April 2025 · last post 22 Oct, 19:34

Counts public posts in this language only.

Latest threads

  1. 5points
    5
  2. 8points
    4
  3. 8points

    Why not just check ".csv" in path?

    Solved

    PiotrZ · 13 Sep, 08:42

    4

Latest comments

  1. In Integers have no size limit?

    Great for factorials and combinatorics. math.factorial(100) just works.

    22 Oct, 19:34 · 6

  2. In Tkinter window doesn't open in the online editor

    Works locally! Nice to finally see a real window app.

    18 Oct, 09:45 · 3

  3. In Stage 2 — least-busy eligible person

    Greedy scheduling — not always optimal, but simple and fair enough for a weekly rota.

    17 Oct, 07:58 · 4

  4. In ** 0.5 vs math.sqrt

    The challenge asks for 0.5, so stick with it to pass, then try hypot for fun.

    13 Oct, 20:06 · 3

  5. In Only two methods on tuples?

    count() is handy for quick stats, e.g. counting "GO" votes in a tuple of poll results.

    13 Oct, 18:30 · 1

  6. 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.

    13 Oct, 18:16 · 4

  7. 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.

    12 Oct, 15:57 · 2

  8. 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.

    6 Oct, 12:32 · 5

  9. In Nine elifs → one dict. So satisfying.

    :.0f worked for me.

    3 Oct, 07:14

  10. In Return a tuple or a dict?

    And @dataclass once you need more than that. But that's a later lesson.

    30 Sep, 07:39 · 3

Log in to ask questions, comment and vote.

Log in Create account