Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAccountDeleted MsgAaryan
107 PointsAbout 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?
states = [
'ACTIVE',
['red', 'green', 'blue'],
'CANCELLED',
'FINISHED',
5,
]
states.remove(['red', 'green', 'blue'])
states.remove('CANCELLED')
states.remove('FINISHED')
states.remove(5)
1 Answer
Meg Goodwin
8,297 PointsThe 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. :)