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

Zachary Carlos
Zachary Carlos
912 Points

Task 1 is no longer working after my second .remove()

When asked to remove the 5 from the given list, my function states.remove(5) works. However when I try to use the .remove function again to remove the list in the list, it says that task one does not work anymore.

states = [ 'ACTIVE', ['red', 'green', 'blue'], 'CANCELLED', 'FINISHED', 5, ]

states.remove(5) <------- this works states.remove(['red', 'green', 'blue']) <------ says task one does not work anymore
states = [
    ['red', 'green', 'blue'],
states.remove(['red', 'greeb', 'blue'])

1 Answer

Steven Parker
Steven Parker
171,342 Points

You just have a typo. You have "greeb" (with a "b") instead of 'green' (with an "n").