Lesson 116: Sets, membership, and uniqueness
Focus
Slow tempo wins; narrate checkpoints aloud: Basic drills Sets, membership, and uniqueness; spin token 1002491 makes this page unlike its neighbours.
Key ideas
- Angle
Basic: micro cadence6mixesSets, membership, and uniqueness; spin58154. - Ritual: Add one doctest-style assertion comment above hottest print.
- Guardrail: promise one security boundary if this touched user data.
Example (LESSON_UID = "basic-116")
# Basic drill L116 topic-11 micro-5 pattern-6
LESSON_UID = "basic-116"
spin_a, spin_b, spin_c = 613, 241, 802
start = 20 + 5 % 5
leap = 9
span = 45
bucket = []
for idx in range(start, start + span):
bucket.append(idx * (spin_a % 37 + leap))
squares = tuple(x * x if x % 2 == (5 % 2) else -x for x in bucket[-4:])
print(bucket, squares)
Practice
Practice 12: Pair-snippet assertions about checksum ranges you'd ship. Literal nudge 12.
Fingerprints
- lesson_uid:
basic-116 - umbrella band:
Sets, membership, and uniqueness(6/10) - lesson_index:
3716