The Dictionary Data Type
p
A dictionary is a collection
of
items
, similar to a bag.
p
But unlike a bag, each item
has a string attached to it,
called the item's
key
.
Example:
The
items
I am
storing are records
containing data
about a state.
For this example, each item that I"m putting in the Dictionary is a record which contain a bunch of geographical information about a state.