14/14 it's dangerous to go alone


#1

hi guys canu you have a check???

inventory = {
    'gold' : 500,
    'pouch' : ['flint', 'twine', 'gemstone'], # Assigned a new list to 'pouch' key
    'backpack' : ['xylophone','dagger', 'bedroll','bread loaf']
    'pocket':['seashell','strange berry','lint']
}

# 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() 
inventory['backpack'].sort()
# Your code here
inventory['backpack'].remove('dagger')
inventory['gold']=inventory['gold']+50

Oops, try again. Did you accidentally delete the inventory dictionary? Click Reset Code to get back to the original code.
i already reset the code but i continue to have this error....


#2

Hi chipninja!

I'm not sure, but I think it might be a formatting issue. Before you tear your hair out in frustration :wink:, try adding a comma after the backpack list value in inventory:

'backpack' : ['xylophone','dagger', 'bedroll','bread loaf'], <= right here

Good luck!


#3

Thanks for your time you are right))))))