Skip to content

Glossary: Python Basics

Dict

Also written: dictionary, dicts, dictionaries

A collection of key-value pairs written in curly braces. You look a value up by its key, such as `prices["mug"]` giving 8.50.

Where the book teaches it

Related terms

KeyError.get()