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 trialDaniel Farikullah
200 Pointswhere have i gone wrong? seems logical what i have put together
please help
[blue, black, red, yellow, white]
"color" = [blue, black, red, yellow, white]
1 Answer
andren
28,558 PointsThe first line is not really needed and contain some errors, as far as the second line goes there are two issues:
You have named the variable
color
instead ofcolors
which is what the task asked for, naming it exactly what is requested is important when doing a challenge.You have your quote usage the wrong way around. The names of variables should not be enclosed in quotes, arbitrary words like the colors you have placed in the list should be enclosed in quotes though, as they are strings.
So if you remove the first line and fix the issues I pointed out like this:
colors = ["blue", "black", "red", "yellow", "white"]
Then your code will be accepted.