14. It's Dangerous to Go Alone! Take This


Stuck on exercise 14 of python lists and dictionaries.

Oops, try again. It looks like you do not have all the correct items in inventory["pocket"].

I have no idea why this happens, I've tried browsing for a solution but no good. I am adding pocket to the dictionary but it won't do anything. It's very frustrating when it looks like a part of the code.

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['pocket'] = ['seashell', 'strangeberry', 'lint']

inventory['backpack'].sort() # Your code here
inventory['gold'] += 50
print inventory


strange berry are two words, not one


Ah, thanks for the reply. When looking at the exercise it looks like one word that just cuts off.