← Curriculum track ← Learn hub
Quanta GenAI Curriculum · Python · Basic

Python Basic — 025: Calibrate stream caps with fresh literals centred on `Numbers, operators, and conversions` [275080]

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

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