It's Dangerous to Go Alone! Take This 14


#1

I don't know whats wrong!!!

inventory = {
'gold' : 500, 50
'pouch' : ['flint', 'twine', 'gemstone'],
'pocket' : ['seashell', 'strange berry', 'lint'],
'backpack' : ['xylophone','dagger', 'bedroll','bread loaf']
}

inventory["pocket"] = ["seashell", "strange berry", "lint"]
inventory['burlap bag'] = ['apple', 'small ruby', 'three-toed sloth']

Sorting the list found under the key 'pouch'

inventory['pouch'].sort()

inventory['backpack'].remove('dagger')


#2

@spiderman9,

Have a close look at

'gold' : 500, 50


#3

what should I do? I have no clue.


#4

I believe what @leonhard_wettengmx_n is pointing out is that you have two bits of data without a structure to match the others.

[500, 50],

That is, if I read this correctly without checking the lesson first (my bad...).


#5

here to say, "Add 50 to the number stored under the 'gold' key"

so in my case, I wrote

inventory['gold']+=50

and then I solve this step.


#6

That is exactly the solution, when one reads the instructions. Three days later it tends to give up some of its shine. Tough to say what value any of us responders have added. Just a thought.