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 Collections (2016, retired 2019) Lists Combining Lists

Jamaru Rodgers
Jamaru Rodgers
3,046 Points

Challenge won't let me pass Task 1, even though I've gone back and confirmed that it was correct.

I takes me back to the first task, which I've already gone back to a couple of times and it was right. And I know that .append() can be used on that list, or it wouldn't have said I could choose to use it.

lists.py
best = ['battlefield', 'destiny', 'watchdogs 2']
best.append('dragon ball z', 'horizon zero dawn')
Rhuwell Samano
Rhuwell Samano
6,715 Points
best = ['battlefield', 'destiny', 'watchdogs 2']
best.extend(['dragon ball z', 'horizon zero dawn'])

The brackets on the second line go inside the parentheses!

1 Answer

Jamaru Rodgers
Jamaru Rodgers
3,046 Points

Nevermind. I Just split it up and added another .append() with a single item and it passed.