Need help


#1



So I was just doing what you were supposed to do and randomly the console says this

"Traceback (most recent call last):
File "python", line 2, in
ValueError: list.remove(x): x not in list"


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


I don't get why this won't work


#2

Hi, @frog2dey ,

You cannot remove a "daggar" when the closest item you have to that in your backpack is a "dagger".


#3

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