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 trialAndrew Flack
186 PointsHow do I rename a list
The list example is saying to make a list of colors and when I do it returns red undefined.
my_list = [ green, blue, red, purple, pink]
1 Answer
Chase Stevens
11,056 PointsHi Andrew,
Couple things here:
- The challenge is asking you to make a list named
colors
, but it seems your list is namedmy_list
. - You're need to add
green, blue, red, purple, pink
as strings; otherwise, your program won't know what is in the list!