11/14


#1

menu = {} # Empty dictionary
menu['Chicken Alfredo'] = 14.50 # Adding new key-value pair
print menu['Chicken Alfredo']

Your code here: Add some dish-price pairs to menu!

menu['Spam'] = 2.50
print menu['Spam'] = 2.50

print "There are " + str(len(menu)) + " items on the menu."
print menu

says File "python", line 7
print menu['Spam'] = 2.50
^
SyntaxError: invalid syntax


#2

We only set the property once, after which we can print its value:

`
print menu['Spam']