Lesson 044: Booleans, comparisons, and truthiness
Focus
Compare against yesterday's mental model politely: Basic drills Booleans, comparisons, and truthiness; spin token 392869 makes this page unlike its neighbours.
Key ideas
- Angle
Basic: micro cadence4mixesBooleans, comparisons, and truthiness; spin32329. - Ritual: Predict the checksum line, then reconcile on mismatch.
- Guardrail: call out latent off-by-one before shipping analogues.
Example (LESSON_UID = "basic-044")
# Basic drill L044 topic-4 micro-3 pattern-8
LESSON_UID = "basic-044"
spin_a, spin_b, spin_c = 640, 957, 179
pairs = [(56, 9), (3, 4), (44, 28)]
flat = 7
for left, right in sorted(pairs):
print(left ^ right + flat % 997)
Practice
Practice 10: Inject a benign off-by-one, observe drift, revert with notes. Literal nudge 10.
Fingerprints
- lesson_uid:
basic-044 - umbrella band:
Booleans, comparisons, and truthiness(4/10) - lesson_index:
1398