WeCodeAcademy

Dictionaries

A dictionary stores key: value pairs.

Examplepython
Open in editor »
Quick check

How do you read the value stored under the key "name"?

Your turn: write the code

Print the total of all the values in the dictionary ages.

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.