Lists and D - New Entries whats wrong?


Oops, try again. Make sure to add at least three key-value pairs to menu to complete this exercise!

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

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

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


You've added only two. Make up one more and you should be good to go.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.