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

Python Basic — 004: Re-shape edge literals with packaging empathy centred on `Your first prints and scripts` [707144]

Lesson 004: Your first prints and scripts

Focus

Let the literals expose mistaken assumptions quickly: Basic drills Your first prints and scripts; spin token 53202 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-004")

# Basic drill L004 topic-0 micro-3 pattern-2
LESSON_UID = "basic-004"
spin_a, spin_b, spin_c = 12, 970, 758

blob = "0|D"
head, sep, tail = blob.partition("|")
print(tuple(zip(head, reversed(tail))))
filt = [ch for ch in head if ord(ch) % (spin_a % 5 + 2) != 0]
print("filt", filt)

Practice

Practice 40: Inject a benign off-by-one, observe drift, revert with notes. Literal nudge 40.

Fingerprints