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

About the listing

Question = Ok, one more removal. See that second item in states? It's a list of colors and doesn't belong here. Can you get rid of it for me? Be sure to use .remove() again.

My answer: states = [ 'ACTIVE', ['red', 'green', 'blue'], 'CANCELLED', 'FINISHED', 5, ] states.remove(['red', 'green', 'blue']) states.remove('CANCELLED') states.remove('FINISHED') states.remove(5)

What do I have to do next?

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

1 Answer

The challenge doesn't want you to remove 'CANCELLED' or 'FINISHED'. Try removing those two lines so that you are only removing 5 and the list. :)