Dictionaries

Dictionaries

Chapter 9.

Dictionaries are mappings. They store objects by key instead of by relative position.

Each element in a dictionary has two parts: a key and a value.

You use a key to locate a specific value.

Python dictionary

Dictionary of two elements

Same dictionary

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download