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

Python Basic — 016: Partition slice cadence with narrow scope centred on `Variables, names, and built-in helpers` [714957]

Lesson 016: Variables, names, and built-in helpers

Focus

Compare against yesterday's mental model politely: Basic drills Variables, names, and built-in helpers; spin token 133370 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-016")

# Basic drill L016 topic-1 micro-5 pattern-7
LESSON_UID = "basic-016"
spin_a, spin_b, spin_c = 982, 961, 634

src = [((k + 16) * 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 36: Enumerate three pytest markers you'd decorate if this lived in CI. Literal nudge 36.

Fingerprints