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

Python Basic — 104: Probe hypothesis stubs with typing overload tact centred on `Dictionaries map keys to values` [575311]

Lesson 104: Dictionaries map keys to values

Focus

Prints are breadcrumbs, not ornamentation: Basic drills Dictionaries map keys to values; spin token 887867 makes this page unlike its neighbours.

Key ideas

Example (LESSON_UID = "basic-104")

# Basic drill L104 topic-10 micro-3 pattern-10
LESSON_UID = "basic-104"
spin_a, spin_b, spin_c = 209, 664, 784

def gate(v):
    if v < spin_a + 3:
        return "low", v ** 2
    if v > spin_b + 104:
        return "high", v // max(1, 3 + 1)
    return "mid", v + spin_c

cand = [9, 7, 53]
for candidate in cand:
    lbl, val = gate(candidate)
    print(candidate, lbl, val)

Practice

Practice 27: Attach property-style expectations referencing tuple shapes. Literal nudge 27.

Fingerprints