Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created March 1, 2018 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/098d298ce90629e8ec2c35fff4ab27ae to your computer and use it in GitHub Desktop.
Save codecademydev/098d298ce90629e8ec2c35fff4ab27ae to your computer and use it in GitHub Desktop.
Codecademy export
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['oranges'] = 11.23
menu['Burger'] = 3.75
menu['yoghurt'] = 4.50
print "There are " + str(len(menu)) + " items on the menu."
print menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment