Python Lists and Dictionaries - Remove a Few Things


#1

Yes, I need help again.

My code:

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

It says that "backpack has to be a list! Click Reset Code to get back to the original code."

Help please W/ Explanation.

Many Thanks.


#2

Dont worry guys i refreshed the page and it worked


#3

i dont think there is an error.

there is? let me know


#4

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