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

Python Basic — 149: Re-shape binding drift with pool discipline centred on `Scope, locals, and shadowing pitfalls` [120022]

Lesson 149: Scope, locals, and shadowing pitfalls

Focus

Assume a reviewer executes this verbatim: Basic drills Scope, locals, and shadowing pitfalls; spin token 1226256 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-149")

# Basic drill L149 topic-14 micro-8 pattern-8
LESSON_UID = "basic-149"
spin_a, spin_b, spin_c = 602, 417, 905

pairs = [(18, 22), (8, 14), (36, 150)]
flat = 17
for left, right in sorted(pairs):
    print(left ^ right + flat % 997)

Practice

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

Fingerprints