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

Akshaan Mazumdar
Akshaan Mazumdar
2,356 Points

TASK 1 is no longer passing

Cant remove finished after removing 5 . It says task one is no longer passing

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

1 Answer

You need to put quotation marks around FINISHED like 'FINISHED'. The way you have it now makes it think it's a variable.

Akshaan Mazumdar
Akshaan Mazumdar
2,356 Points

even after that it doesnt seem to work