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
menu['Jackelope'] = 89.40
menu['Snails'] = -0.50
print "There are " + str(len(menu)) + " items on the menu."
print menu
No comments:
Post a Comment