Chapter 12 Flashcards
dictionary
A collection of key-value pairs that maps from keys to values. The keys can be any immutable type, and the values can be any type.
mapping type
A mapping type is a data type comprised of a collection of keys and associated values. Python’s only built-in mapping type is the dictionary. Dictionaries implement the associative array abstract data type.
key
A data item that is mapped to a value in a dictionary. Keys are used to look up values in a dictionary.
key-value pair
One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
hint
Temporary storage of a precomputed value to avoid redundant computation.
event
A signal such as a keyboard press, mouse click, or message from another program.
event-driven program
In computer programming, event-driven programming or event-based programming is a programming paradigm in which the flow of the program is determined by events—i.e., sensor outputs or user actions (mouse clicks, key presses) or messages from other programs or threads.
event loop
A programming construct that waits for events and processes them.
overflow
A numerical result that is too large to be represented in a numerical format.