Community member

OliviaPy

Member since May 2025 · last post 27 Oct, 16:32

Counts public posts in this language only.

Latest threads

  1. 2points
    4
  2. 4points
    4
  3. 10points
    4
  4. 7points

    ** 0.5 vs math.sqrt

    Solved

    OliviaPy · 14 Oct, 08:05

    4
  5. 0points

    (5) is not a tuple?

    OliviaPy · 14 Oct, 13:14

    4
  6. 11points

    Is "5" a number or a string?

    Solved

    OliviaPy · 11 Oct, 14:33

    5
  7. 11points
    4
  8. 11points

    Stage 2 — finding the nearest

    Solved

    OliviaPy · 29 Sep, 09:51

    4
  9. 1points

    Stage 2 — why key=str.lower?

    Solved

    OliviaPy · 27 Sep, 21:17

    4
  10. 9points

    Stage 2 — negative latitude

    Solved

    OliviaPy · 26 Sep, 22:29

    4

Latest comments

  1. In Stage 2 — the quotes look normal to me

    Learned this the hard way copying code from a PDF.

    27 Oct, 16:32 · 2

  2. In Should I delete the debug line or comment it out?

    Didn't know about Ctrl+/ — game changer.

    27 Oct, 07:55 · 5

  3. In Where to start with a 70-line repetitive script?

    Rename t, m, s to real names while you're at it — "Names that explain" pays off here.

    26 Oct, 16:41 · 1

  4. In How do you remember all the syntax?

    I keep a personal cheat sheet file with snippets I've needed more than twice. Writing it down helps me remember too.

    26 Oct, 07:16 · 6

  5. In insert(1, ...) — "position 1" is second?

    Right, the commander stays at 0.

    25 Oct, 23:00 · 1

  6. In JAXA, H3 — real rockets?

    For stage 2, launch.items() gives key-value pairs in insertion order, so the output order matches the JSON. Two spaces of indentation inside the f-string.

    25 Oct, 13:48 · 3

  7. In RuntimeError: dictionary changed size during iteration

    The comprehension version is really clean, going with that.

    25 Oct, 13:07

  8. In splitlines() vs split("\n")

    splitlines() handles all line endings (\n, \r\n from Windows files, etc.) and doesn't give you an empty string at the end if the text ends with a newline. Safer for real data.

    21 Oct, 08:08 · 2

  9. In Stage 1 — DEFAULTS got changed too

    The | merge operator is great. But stage 2 needs the loop anyway for the unknown-key check.

    19 Oct, 07:47 · 3

  10. In IndexError: list assignment index out of range Solution

    Assignment by index only changes existing positions; it can't create new ones. Use append() to add: crew = [] crew.append("Ada")

    18 Oct, 20:59 · 4

Log in to ask questions, comment and vote.

Log in Create account