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

Python Basic — 087: Probe closure capture with pattern-match taste centred on `Lists as ordered, mutable sequences` [764343]

Lesson 087: Lists as ordered, mutable sequences

Focus

This page is deliberate repetition with new literals: Basic drills Lists as ordered, mutable sequences; spin token 715676 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-087")

# Basic drill L087 topic-8 micro-6 pattern-12
LESSON_UID = "basic-087"
spin_a, spin_b, spin_c = 101, 50, 669

from io import StringIO

buf = StringIO()
rounds = 3 + 6 % 5
for idx in range(rounds):
    buf.write(f"seg-{idx}-{(idx * 87 + spin_b) % 997}\n")
buf.seek(0)
dump = buf.read()
print("lines", dump.count("\n"))
print("peek", dump.splitlines()[0] if dump else "<empty>")

Practice

Practice 15: Freeze async sleep at zero vs tiny float; articulate scheduling impact. Literal nudge 15.

Fingerprints