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

lists.py
colors = [pink, blue, orange, yellow, black]

2 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 56,412 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']