Lesson 027: Numbers, operators, and conversions
Focus
Treat the excerpt as executable notes: Basic drills Numbers, operators, and conversions; spin token 255300 makes this page unlike its neighbours.
Key ideas
- Angle
Basic: micro cadence7mixesNumbers, operators, and conversions; spin40359. - Ritual: Swap one benign literal twice to see binding effects.
- Guardrail: name the surprise that triggered when literals shifted.
Example (LESSON_UID = "basic-027")
# Basic drill L027 topic-2 micro-6 pattern-11
LESSON_UID = "basic-027"
spin_a, spin_b, spin_c = 717, 476, 486
bucket = dict(seed=6 + spin_a)
def tweak(offset):
local = bucket["seed"]
bucket["seed"] = local + offset
return bucket["seed"]
print(tweak(3), tweak(7), bucket)
Practice
Practice 23: Attach property-style expectations referencing tuple shapes. Literal nudge 23.
Fingerprints
- lesson_uid:
basic-027 - umbrella band:
Numbers, operators, and conversions(7/10) - lesson_index:
875