Python · Structural Pattern Matching
Why does Python reject case [x]: when you mean to match a one-element sequence, in the context where you wrote a tuple pattern (x) — and what's the fix?
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
