Python Python Basics (2015) Python Data Types List Creation

colors = [blue, green, red, purple, yellow, orange] Saying 'blue' is not defined...Trying to make a list of colors

colors = [blue, green, red, purple, yellow, orange] Saying 'blue' is not defined...Trying to make a list of colors

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

1 Answer

Steven Parker
Steven Parker
170,273 Points

Did you intend to make a list of the names of colors?

:point_right: Your names should be enclosed in quotes.

lists.py
colors = ["blue", "green", "red", "purple", "yellow", "orange"]