Python โ From Basics to Advanced ยท Data Collections
Dictionaries (dict)
Data Collections
Introduction
A dictionary is a collection of key-value pairs. Keys are unique and lookup by key runs in O(1). Dicts are ideal for representing objects, configurations and mappings. In this lesson you learn to create, mutate and iterate them.