Lesson 025: Numbers, operators, and conversions
Focus
Prints are breadcrumbs, not ornamentation: Basic drills Numbers, operators, and conversions; spin token 256355 makes this page unlike its neighbours.
Key ideas
- Angle
Basic: micro cadence5mixesNumbers, operators, and conversions; spin50708. - Ritual: Swap one benign literal twice to see binding effects.
- Guardrail: call out latent off-by-one before shipping analogues.
Example (LESSON_UID = "basic-025")
# Basic drill L025 topic-2 micro-4 pattern-12
LESSON_UID = "basic-025"
spin_a, spin_b, spin_c = 143, 166, 597
from io import StringIO
buf = StringIO()
rounds = 3 + 4 % 5
for idx in range(rounds):
buf.write(f"seg-{idx}-{(idx * 25 + spin_b) % 997}\n")
buf.seek(0)
dump = buf.read()
print("lines", dump.count("\n"))
print("peek", dump.splitlines()[0] if dump else "<empty>")
Practice
Practice 24: Swap print order once; reconcile dependency thinking. Literal nudge 24.
Fingerprints
- lesson_uid:
basic-025 - umbrella band:
Numbers, operators, and conversions(5/10) - lesson_index:
797