Python Python Basics (2015) Python Data Types List Creation

Can't make list

Confused. Example video only used numbers.

lists.py
list_colors = ["red" "orange" "yellow" "green" "blue" "violet"]

2 Answers

Samuel Ferree
Samuel Ferree
31,709 Points

You need to seperate your list items with a comma

list_colors = ["red", "orange", "yellow", "green", "blue", "violet"]

It says variable colors not defined.