Python Python Basics (2015) Python Data Types List Creation

Stuck here please help

It keeps saying colors not defined
colours = [red,white,blue,pink,silver]

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Staff

Hi 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! :sparkles: