Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created May 9, 2016 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save codecademydev/63383912fefad7401c24a5ee8c8194bf to your computer and use it in GitHub Desktop.
Save codecademydev/63383912fefad7401c24a5ee8c8194bf to your computer and use it in GitHub Desktop.
Codecademy export
inventory = {
'gold' : 500,
'pouch' : ['flint', 'twine', 'gemstone'], # Assigned a new list to 'pouch' key
'backpack' : ['xylophone','dagger', 'bedroll','bread loaf']
}
# Adding a key 'burlap bag' and assigning a list to it
inventory['burlap bag'] = ['apple', 'small ruby', 'three-toed sloth']
# Sorting the list found under the key 'pouch'
inventory['pouch'].sort()
# Your code here
inventory['poket'] = ['seashell','strange berry','lint']
inventory['backpack'].sort()
inventory['backpack'].remove('dagger')
inventory['gold'] = inventory['gold'] + 50
@chicong-dev
Copy link

Oops, try again. It looks like you did not add the "pocket" key.

@ongiti
Copy link

ongiti commented Apr 9, 2017

your "poket"-> 'pocket'
you missed out n the c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment