14/14 Not all items added to "pocket", 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', 'strangeberry', 'lint'],
inventory["backpack"].sort()
inventory["backpack"].remove("dagger")
inventory["gold"] = 550

#2

remove the comma at te end of this line

Be sure to comment these lines


#3

thanks for the help, but it still doesn't work. I think its a problem on this line, where I add a new key to inventory, "pocket":

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


#4

problem solved! i had "strangeberry" instead of strange berry lol sorry! thank you for the help


#5

please help me it wont work


#6

hi! what's your code?


#8

Your line is messed up:
inventory["pocket"] = ['seashell', 'strangeberry', 'lint'],

here is mine that worked:
inventory["pocket"] = ['seashell', 'strange berry', 'lint']