Python Python Basics (2015) Python Data Types List Creation

Tiberiu Gavris
Tiberiu Gavris
1,785 Points

i get error in making the list. why?

What am I doing wrong?
colors = [alb, negru, rosu, maro, verde]

1 Answer

Stuart Wright
Stuart Wright
41,071 Points

You need quotation marks around your colors for them to be valid strings. Either single or double is fine in Python: