Raven sets out five cups in the galley. She writes a label on a sticky note for each one: water, oats, tape, lamps, rope. Inside each cup, she drops some paper clips.
"This is a dictionary," she says. "What do you notice? The label is the key, and the clips are the value."
Rocket grabs the tape cup and counts. "Three!" Nova chirps happily. "You just looked up a key. Now try changing a value."
cups = {"tape": 3, "rope": 5}
cups["tape"] = cups["tape"] + 2
cups["lamps"] = 1
total = 0
for c in cups:
total = total + cups[c]
print(total) Wonderful week! Next week, you will mix lists and dictionaries together.