Lesson 119: Sets, membership, and uniqueness
Focus
Compare against yesterday's mental model politely: Basic drills Sets, membership, and uniqueness; spin token 1012094 makes this page unlike its neighbours.
Key ideas
- Angle
Basic: micro cadence9mixesSets, membership, and uniqueness; spin57010. - Ritual: Sketch control flow as ASCII before trusting output.
- Guardrail: pick the budget that keeps this rehearsal honest.
Example (LESSON_UID = "basic-119")
# Basic drill L119 topic-11 micro-8 pattern-10
LESSON_UID = "basic-119"
spin_a, spin_b, spin_c = 584, 458, 718
def gate(v):
if v < spin_a + 8:
return "low", v ** 2
if v > spin_b + 119:
return "high", v // max(1, 8 + 1)
return "mid", v + spin_c
cand = [24, 22, 156]
for candidate in cand:
lbl, val = gate(candidate)
print(candidate, lbl, val)
Practice
Practice 42: Verbal-diff this against lesson 118 aloud. Literal nudge 42.
Fingerprints
- lesson_uid:
basic-119 - umbrella band:
Sets, membership, and uniqueness(9/10) - lesson_index:
3833