Skip to content

The basics · Dictionaries

Grouping and nested data

Dictionaries of lists, and dictionaries inside dictionaries. · 10 minutes

Predict first

What does the loop print?

1ages = {"ada": 36, "alan": 41}
2for x in ages:
3 print(x)