Python Python Basics (2015) Python Data Types list.remove()

I cant resolve this challenge!

I cant resolve this challenge!

lists.py
states = [
    'ACTIVE',
    ['red', 'green', 'blue'],
    'CANCELLED',
    'FINISHED',
    5,
]
states.remove ([5])

1 Answer

Steve Hunter
MOD
Steve Hunter
Treehouse Moderator 56,145 Points

Hi there,

You don't need the square brackets around the 5; just pass the item you want removing in the parentheses.

Steve.

then why in the previous video we had to use .remove([ ]) to remove from the list?