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 trialJordon Thornberry
4,634 PointsJust confused with the last sentence
just confused on the last sentence
my_list = [3, 2, 1, "ABC", "DEF"]
extra = [ 2, 3]
my_list.append("extra")
1 Answer
Louise St. Germain
19,424 PointsHi Jordon,
It will work if you remove the quotation makes from around "extra" in the last line, since you're trying to pass the variable called extra, not the literal string "extra".
You can also just hard-code a list as the last item in the bigger list you create on the first line. This challenge doesn't necessarily need you to go through the process of appending it (although it's totally fine if you want to do it that way).
Hope this helps!