Community member

JackStack

Member since October 2025 · last post 26 Oct, 15:10

Counts public posts in this language only.

Latest threads

  1. 1points
    4
  2. 6points
    4
  3. 2points
    4
  4. 8points
    4
  5. 2points
    4
  6. 2points
    4
  7. 10points

    remove() vs discard()

    Solved

    JackStack · 29 Sep, 11:00

    4
  8. 0points
    5
  9. 3points

    Debug messages don't show up

    Solved

    JackStack · 25 Sep, 20:00

    4
  10. 2points
    4

Latest comments

  1. In How do you remember all the syntax?

    help(range) in the console is underrated. Quick and offline.

    26 Oct, 15:10 · 1

  2. In How does the checker test a "live" countdown?

    Passing the clock in as a parameter. That's a really useful pattern.

    25 Oct, 10:08 · 3

  3. In Why is decimals keyword-only?

    Oh! That's why print(1, 2, " ") doesn't change the separator. It all connects.

    23 Oct, 07:47 · 3

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

    22 Oct, 23:43 · 5

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

    21 Oct, 20:54 · 4

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

    20 Oct, 07:44 · 9

  7. In IndexError: list assignment index out of range

    So [0] only works if there's already something at 0. Got it.

    19 Oct, 17:43

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

    19 Oct, 10:48 · 4

  9. In split(maxsplit=3) — what does it do?

    Perfect for "fixed fields + free text" formats.

    16 Oct, 23:07 · 1

  10. 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 +=, *=, /=.

    16 Oct, 13:35 · 3

Log in to ask questions, comment and vote.

Log in Create account