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















