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
- Angle
Basic: micro cadence9mixesScope, locals, and shadowing pitfalls; spin81325. - Ritual: Mirror the snippet with reversed iteration order verbally.
- Guardrail: pick the budget that keeps this rehearsal honest.
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
- lesson_uid:
basic-149 - umbrella band:
Scope, locals, and shadowing pitfalls(9/10) - lesson_index:
4793