Python Python Basics (2015) Python Data Types List Creation

karthik meduri
karthik meduri
1,798 Points

Let's practice making a list. Make a new list variable named colors.

my code says to add more items in list.what can i do??

lists.py
colors='five'
my_list=["Red", "Blue", "Yellow", "Green", "Pink"]

1 Answer

Domenic Carobine
Domenic Carobine
9,014 Points

Hey, the quiz is asking for a list with the variable name color (see below). The quiz checker is only seeing the 1 string value "five" in your variable colors when it runs the original code you posted, so that's why it's asking for more items.

colors=["Red", "Blue", "Yellow", "Green", "Pink"]