Python Python Basics (2015) Python Data Types List Creation

List creation challenge task: Making a colors list error.

I'm on the List Creation challenge task and I get a NameError for the list I'm creating.

lists.py
colors = [red, blue, green, purple, gold]

1 Answer

Steven Parker
Steven Parker
168,628 Points

The color names should be strings, so you'll need to put quotes around each of them.