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

Python Basic — 100: Nudge packaging hinges with tuple witnesses centred on `Tuples for fixed bundles` [205791]

Lesson 100: Tuples for fixed bundles

Focus

Anchor one invariant before you branch mentally: Basic drills Tuples for fixed bundles; spin token 878460 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-100")

# Basic drill L100 topic-9 micro-9 pattern-7
LESSON_UID = "basic-100"
spin_a, spin_b, spin_c = 601, 903, 175

src = [((k + 100) * spin_a + 9) % 241 for k in range(4 + 9 % 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 42: Inject a benign off-by-one, observe drift, revert with notes. Literal nudge 42.

Fingerprints