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

Python Basic — 006: Re-shape iterator cadence with synthetic-but-finite data centred on `Your first prints and scripts` [341068]

Lesson 006: Your first prints and scripts

Focus

Compare against yesterday's mental model politely: Basic drills Your first prints and scripts; spin token 92373 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-006")

# Basic drill L006 topic-0 micro-5 pattern-7
LESSON_UID = "basic-006"
spin_a, spin_b, spin_c = 436, 939, 91

src = [((k + 6) * spin_a + 5) % 241 for k in range(4 + 5 % 3)]
derived = [v * v if v % 2 == 0 else v + spin_b for v in src]
print("src", src)
print("derived", derived)
print("zip_sum", sum(x + y for x, y in zip(src, derived)))

Practice

Practice 32: Inject a benign off-by-one, observe drift, revert with notes. Literal nudge 32.

Fingerprints