Python Python Basics (2015) Python Data Types List Creation

Jonathan Whelchel
Jonathan Whelchel
2,096 Points

here is my list colors = [red, blue, orange, yellow, black] but its saying red is not defined????

I do not know what I am getting an error for red not being defined
colors = [pink, blue, orange, yellow, black]

2 Answers

Chris Freeman
Chris Freeman
Treehouse Moderator 56,837 Points

Strings not in quotation marks are seen as variable names. If you want strings, add the quotation marks!

Post back if you have more questions. Good Luck!

Quote marks?

things = ['thing', 'thing', 'thing']