Lists and D - New Entries whats wrong?


#1



https://www.codecademy.com/courses/python-beginner-en-pwmb1/2/2?curriculum_id=4f89dab3d788890003000096#


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


#2

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


#3

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