Sorting the keys with lists


#1

inventory={'pocket':['seashell','strange berry','lint']}

inventory['backpack'].sort()

inventory={'backpack'}.remove('dagger')

inventory['gold'] += 50

what wrong this code it seems to give me an KeyError meassage. on line two where i m ought to sort the list under the 'backpack' key.
I believe the rest of the code is correct
Please help


#2

No assignment necessary, here. Just a directive, following normal syntax.

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