No idea why this exercise is not getting passed


#1

< One of the exercise from lists and dictionaries, I am getting an error message saying that not all pocket items are here but I have included everything that was said in the instructions, Please do have a look at it and let me know>

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

}

inventory['burlap bag'] = ['apple', 'small ruby', 'three-toed sloth']
inventory['pouch'].sort()
inventory['pocket'] = ["seashell","strange ","berry","lint"]
inventory['backpack'].sort()
inventory['backpack'].remove('dagger')
inventory['gold']+=50

print inventory


#2

Should be one string...

"strange berry"

#3

Thanks a lot for the reply, Its working now!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.