14/14 need help


#1

What is wrong with this 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['pouch'].sort()

Your code here

inventory['pocket'] = 'seashell', 'strange berry', 'lint'
inventory['backpack'].sort()
backpack.remove('dagger')
inventory['gold'] += 50


#2

You need to define the pocket list like this:
inventory["pocket"] = ['seashell', 'strange berry', 'lint']


#3

Also remove dagger like this:
inventory["backpack"].remove('dagger')


#4

thanks so much. I finally figured that out