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 trialBERNARD OWUSU
314 PointsStuck here please help
It keeps saying colors not defined
colours = [red,white,blue,pink,silver]
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! There's a couple of things going on here. First, you've defined a variable named colours
instead of a variable named colors
. The challenge is going to demand that this be the American English spelling instead of the British English spelling.
Secondly, because you haven't enclosed your items in quotation marks, it believes those to be other variable names that haven't been defined. If I wanted to add the colors black and aqua to that list, I'd need to add "black"
and "aqua"
.
I think you can get it with these hints, but let me know if you're still stuck!