Dictionary
1. A dictionary is similar to a list, but you access values by looking up a key instead of an index. A key can be any string or number. Dictionaries are enclosed in curly braces, like so:
dictionary_name = {'key1' : 1, 'key2' : 2, 'key3' : 3}
dictionary_name['key1'] means 1.
The key 'key1' points to the value 1; the key 'key2' points to the value 2...
Dictionaries are great for things like phone books (pairing a name with a phone number), login pages (pairing an e-mail address with a username), and more!
2. Dictionaries are mutable. This means they can be changed after they are created. One advantage of this is that we can add new key/value pairs to the dictionary after it is created like so:
ADD NEW: dictionary_name[new_key] = new_value
del command will remove the key key_name
and its associated value from the dictionary.
DELET: del dictionary_name[key]
3. A dictionary (or list) declaration may break across multiple lines