Remove a Few Things, Can't figure out the problem, it says backpack has to be list when i start running this code


#1



backpack = ['xylophone', 'dagger', 'tent', 'bread loaf']
backpack.remove('dagger')
print backpack

Replace this line with your code.

`


#2

backpack should be part of your inventory dictionary, can i see your full code?


#3

backpack = ['xylophone', 'dagger', 'tent', 'bread loaf']
backpack.remove('dagger')
print backpack

#4

now backpack is just a list, it should also be part of your inventory dictionary


#5

I am having the same problem. Can't understand what does it mean. backpack.remove('dagger') removes dagger from the list as required.


#6

please make your own topic, otherwise this topic becomes a mess

backpack should be inside inventory.


#7

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