challenge machine bugged?!?
NameError: name 'blue' is not defined on my code
but im pretty sure you cant get much wrong with this simple code i have here
colours_list = [blue, orange, red, violet, indigo]
Johannes Scribante19,173 Points
When creating a list you can put anything inside the list. That includes variable, strings, numbers, and other lists.
Python has a way or recognizing each of these types.
variable: this is a variable
"string": this is a string
2: this is a number
[variable, 3, "string"]: this is a list
You have essentially made a list of variables, so when python is asked to include the variable blue it looks through the script for a variable blue and because it cannot find the variable, python throws an error. Try making you list entries strings.