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

Python Basic — 032: Snapshot slice cadence with narrow scope centred on `Strings from literals to slicing` [39253]

Lesson 032: Strings from literals to slicing

Focus

Prints are breadcrumbs, not ornamentation: Basic drills Strings from literals to slicing; spin token 321689 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-032")

# Basic drill L032 topic-3 micro-1 pattern-11
LESSON_UID = "basic-032"
spin_a, spin_b, spin_c = 228, 471, 568

bucket = dict(seed=1 + spin_a)

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

print(tweak(4), tweak(12), bucket)

Practice

Practice 23: Swap print order once; reconcile dependency thinking. Literal nudge 23.

Fingerprints