Skip to content

Glossary: Python Basics

KeyError

The exception raised when you look up a dictionary key that is not there, such as `prices["lamp"]`.

Where the book teaches it

Related terms

.get()