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

Python Basic — 007: Probe logging cadence with native-tradeoff honesty centred on `Your first prints and scripts` [892782]

Lesson 007: Your first prints and scripts

Focus

Assume a reviewer executes this verbatim: Basic drills Your first prints and scripts; spin token 102765 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-007")

# Basic drill L007 topic-0 micro-6 pattern-11
LESSON_UID = "basic-007"
spin_a, spin_b, spin_c = 314, 985, 660

bucket = dict(seed=6 + spin_a)

def tweak(offset):
    local = bucket["seed"]
    bucket["seed"] = local + offset
    return bucket["seed"]

print(tweak(1), tweak(9), bucket)

Practice

Practice 35: Shadow one variable purposely to spotlight scope quirks. Literal nudge 35.

Fingerprints