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

Python Basic — 002: Partition async relays with guarded merges centred on `Your first prints and scripts` [203812]

Lesson 002: Your first prints and scripts

Focus

Prints are breadcrumbs, not ornamentation: Basic drills Your first prints and scripts; spin token 70206 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-002")

# Basic drill L002 topic-0 micro-1 pattern-3
LESSON_UID = "basic-002"
spin_a, spin_b, spin_c = 351, 787, 362

sentinel = ([] or [])
sentinel = sentinel or [2]
print(bool(sentinel), sentinel)
pick = sentinel or "fallback-2"
print("chosen", pick)

Practice

Practice 28: Pair-snippet assertions about checksum ranges you'd ship. Literal nudge 28.

Fingerprints