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

Python Basic — 111: Snapshot async relays with fresh literals centred on `Sets, membership, and uniqueness` [832325]

Lesson 111: Sets, membership, and uniqueness

Focus

Anchor one invariant before you branch mentally: Basic drills Sets, membership, and uniqueness; spin token 970202 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-111")

# Basic drill L111 topic-11 micro-0 pattern-2
LESSON_UID = "basic-111"
spin_a, spin_b, spin_c = 226, 539, 582

blob = "224|A"
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 3: Inject a benign off-by-one, observe drift, revert with notes. Literal nudge 3.

Fingerprints