About Dictionaries

What is a dictionary?

A dictionary is a set of items that consist of a key and a value.

How do you define a dictionary?

You use braces to define a dictionary.

How do you get information out of a dictionary?

You access the value associated with a key by stating the dictionary name, followed by the key in brackets. Add items to an existing dictionary by placing the new key in brackets and providing the value. Remove items from a dictionary using the del keyword, which removes both the key and its associated value from the dictionary.