Last time i ask


#1

What is wrong with this

inventory['pocket'] = ['seashell','strange berry','lint']
inventory['backpack'].sort()
inventory['backpack'].remove('dagger')
inventory= {'gold' : [500,50]}

it keeps telling me that "oops looks like you did not enter the Pocket Key'


#2

@dalewheeler78gmail.c,
Try using

inventory={}
inventory['pocket'] = ['seashell','strange berry','lint']
print inventory
inventory['backpack']=['saddle','gun','dagger']
print inventory
inventory['backpack'].sort()
print inventory
inventory['backpack'].remove('dagger')
print inventory
#now you are going to reset your inventory !!!!!
inventory= {'gold' : [500,50]}
print inventory

and look what you have done to you inventory dictionary.....
[output]

{'pocket': ['seashell', 'strange berry', 'lint']}
{'pocket': ['seashell', 'strange berry', 'lint'], 'backpack': ['saddle', 'gun', 'dagger']}
{'pocket': ['seashell', 'strange berry', 'lint'], 'backpack': ['dagger', 'gun', 'saddle']}
{'pocket': ['seashell', 'strange berry', 'lint'], 'backpack': ['gun', 'saddle']}
{'gold': [500, 50]}

#3

hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahav you make me lafffffff