Lesson 049: Booleans, comparisons, and truthiness
Focus
Slow tempo wins; narrate checkpoints aloud: Basic drills Booleans, comparisons, and truthiness; spin token 421953 makes this page unlike its neighbours.
Key ideas
- Angle
Basic: micro cadence9mixesBooleans, comparisons, and truthiness; spin14173. - Ritual: Sketch control flow as ASCII before trusting output.
- Guardrail: promise one security boundary if this touched user data.
Example (LESSON_UID = "basic-049")
# Basic drill L049 topic-4 micro-8 pattern-4
LESSON_UID = "basic-049"
spin_a, spin_b, spin_c = 313, 955, 159
score = 69
ladder = []
ladder.append("bronze" if score < (spin_a % 41 + 8) else "silver-ish")
ladder.append("gold" if score > (spin_b % 71 + 4) else "retry")
print(sorted(set(ladder)), score)
Practice
Practice 28: Inject a benign off-by-one, observe drift, revert with notes. Literal nudge 28.
Fingerprints
- lesson_uid:
basic-049 - umbrella band:
Booleans, comparisons, and truthiness(9/10) - lesson_index:
1593