Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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"]