Chapter 12 Flashcards Preview

Python > Chapter 12 > Flashcards

Flashcards in Chapter 12 Deck (9)
Loading flashcards...
1
Q

dictionary

A

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.

2
Q

mapping type

A

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.

3
Q

key

A

A data item that is mapped to a value in a dictionary. Keys are used to look up values in a dictionary.

4
Q

key-value pair

A

One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.

5
Q

hint

A

Temporary storage of a precomputed value to avoid redundant computation.

6
Q

event

A

A signal such as a keyboard press, mouse click, or message from another program.

7
Q

event-driven program

A

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.

8
Q

event loop

A

A programming construct that waits for events and processes them.

9
Q

overflow

A

A numerical result that is too large to be represented in a numerical format.