Lesson 032: Strings from literals to slicing
Focus
Prints are breadcrumbs, not ornamentation: Basic drills Strings from literals to slicing; spin token 321689 makes this page unlike its neighbours.
Key ideas
- Angle
Basic: micro cadence2mixesStrings from literals to slicing; spin27660. - Ritual: Freeze one literal constant with a purposeful name aloud.
- Own one invariant tied to
Basic.
Example (LESSON_UID = "basic-032")
# Basic drill L032 topic-3 micro-1 pattern-11
LESSON_UID = "basic-032"
spin_a, spin_b, spin_c = 228, 471, 568
bucket = dict(seed=1 + spin_a)
def tweak(offset):
local = bucket["seed"]
bucket["seed"] = local + offset
return bucket["seed"]
print(tweak(4), tweak(12), bucket)
Practice
Practice 23: Swap print order once; reconcile dependency thinking. Literal nudge 23.
Fingerprints
- lesson_uid:
basic-032 - umbrella band:
Strings from literals to slicing(2/10) - lesson_index:
1000