Dictionary and Keys
To store values in reference to other values:
dict = {'key1' : 1, 'key2' : 2, 'key3' : 3}
dict is the dictionary variable name
dict [’key1′] will output 1
dict[’key1′] = 5 will add/change the word in dictionary
del dict[’key2′] will delete key2 from the dictionary
For a list within a dictionary:
dict[’list_name’] = [’item1′, ‘item2′, ‘item3′]
dict[’list_name’].remove(’item2′)
print dict[’item1′][0] will print the first item in the list item1















