10.7. Glossary

Dictionary

A mapping from a set of keys to their corresponding values.

Hashtable

The algorithm used to implement Python dictionaries.

Hash function

A function used by a hashtable to compute the location for a key.

Histogram

A set of counters.

Implementation

A way of performing a computation.

Dictionary Item

Another name for a key-value pair.

Key

An object that appears in a dictionary as the first part of a key-value pair.

Key-value pair

The representation of the mapping from a key to a value.

Lookup

A dictionary operation that takes a key and finds the corresponding value.

Nested loops

When there are one or more loops “inside” of another loop. The inner loop runs to completion each time the outer loop runs once.

Dictionary Value

An object that appears in a dictionary as the second part of a key-value pair. This is more specific than our previous use of the word “value”.

Before you keep reading...

Making great stuff takes time and $$. If you appreciate the book you are reading now and want to keep quality materials free for other students please consider a donation to Runestone Academy. We ask that you consider a $10 donation, but if you can give more thats great, if $10 is too much for your budget we would be happy with whatever you can afford as a show of support.

You have attempted 1 of 4 activities on this page