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

Python Basic — 010: Nudge async relays with print-as-contract centred on `Your first prints and scripts` [233963]

Lesson 010: Your first prints and scripts

Focus

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

Key ideas

Example (LESSON_UID = "basic-010")

# Basic drill L010 topic-0 micro-9 pattern-3
LESSON_UID = "basic-010"
spin_a, spin_b, spin_c = 790, 35, 344

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

Practice

Practice 13: Attach property-style expectations referencing tuple shapes. Literal nudge 13.

Fingerprints