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

Stating that Task 1 is no longer passing

I have a feeling this could should work perfectly fine. The first task is to create a list with three items in it called best. It lets me pass the first step perfectly fine after creating the best list but in the second task when I add on the two best.appends it states that task 1 is no longer doing what it is supposed to do when I have changed nothing to that code.

lists.py
best = [1,2,3]
best.append[4]
best.append[5]

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! The reason it's stating that task 1 is no longer passing is because you've introduced a syntax error which means the code can no longer compile. This is the most common reason for receiving this error. Append is a method, and methods use parentheses, not square brackets. Here's an example:

myList.append(8)

Hope this helps! :sparkles:

Thank you! Gonna go kick myself now haha