Python Python Basics (2015) Python Data Types List Creation

Andrew Flack
Andrew Flack
186 Points

How do I rename a list

The list example is saying to make a list of colors and when I do it returns red undefined.

lists.py
my_list = [ green, blue, red, purple, pink]

1 Answer

Hi Andrew,

Couple things here:

  1. The challenge is asking you to make a list named colors, but it seems your list is named my_list.
  2. You're need to add green, blue, red, purple, pink as strings; otherwise, your program won't know what is in the list!