Python Python Basics (2015) Python Data Types List Creation

list

I made colours_list=['red','green','blue','pink','yellow'] And he error says colours no defines .I did exactly he same in command prompt and it worked and there was no such error.

4 Answers

Jeremy Hill
Jeremy Hill
20,424 Points

The challenge says to make the list variable name "colors".

how I'm suppose to do that can you help me out?

Jeremy Hill
Jeremy Hill
20,424 Points

Just change this: colours_list=['red','green','blue','pink','yellow']

to this:

colors = ['red', 'green', 'blue', 'pink', 'yellow']

always read carefully task there all is explain.