14. Its dangerous to go alone Help


#1

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()
inventory['backpack'].remove('dagger')
inventory['gold']+50

My error is "oops try again, make sure to add 50 to the gold total!

Please help :smiley:

`


#2

To update the total, you would use += not just +. :slightly_smiling:


#3

Thank you so much :smiley:


#4

I'm still getting

Oops, try again.
Make sure to add 50 to the gold total!

#5

Never mind, I fixed it xD