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

Python Basic — 044: Snapshot dict views while narrating checkpoints centred on `Booleans, comparisons, and truthiness` [108947]

Lesson 044: Booleans, comparisons, and truthiness

Focus

Compare against yesterday's mental model politely: Basic drills Booleans, comparisons, and truthiness; spin token 392869 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-044")

# Basic drill L044 topic-4 micro-3 pattern-8
LESSON_UID = "basic-044"
spin_a, spin_b, spin_c = 640, 957, 179

pairs = [(56, 9), (3, 4), (44, 28)]
flat = 7
for left, right in sorted(pairs):
    print(left ^ right + flat % 997)

Practice

Practice 10: Inject a benign off-by-one, observe drift, revert with notes. Literal nudge 10.

Fingerprints