Lesson 111: Sets, membership, and uniqueness
Focus
Anchor one invariant before you branch mentally: Basic drills Sets, membership, and uniqueness; spin token 970202 makes this page unlike its neighbours.
Key ideas
- Angle
Basic: micro cadence1mixesSets, membership, and uniqueness; spin54765. - Ritual: Mirror the snippet with reversed iteration order verbally.
- Guardrail: name the surprise that triggered when literals shifted.
Example (LESSON_UID = "basic-111")
# Basic drill L111 topic-11 micro-0 pattern-2
LESSON_UID = "basic-111"
spin_a, spin_b, spin_c = 226, 539, 582
blob = "224|A"
head, sep, tail = blob.partition("|")
print(tuple(zip(head, reversed(tail))))
filt = [ch for ch in head if ord(ch) % (spin_a % 5 + 2) != 0]
print("filt", filt)
Practice
Practice 3: Inject a benign off-by-one, observe drift, revert with notes. Literal nudge 3.
Fingerprints
- lesson_uid:
basic-111 - umbrella band:
Sets, membership, and uniqueness(1/10) - lesson_index:
3521