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

your best variable does not have 3 items

there seems a bug in the system can you force this to pass

best=["apple","peach","mango"] best.extend(["banana","cherry"])

this is th code it does not pass on my side

lists.py
best=["apple","peach","mango"]
best.extend(["banana","cherry"])

moderator please tell me why it says my best variable needs 3 items....Ive done that... it is not passing my side

1 Answer

Steven Parker
Steven Parker
229,657 Points

This code would give the list five items. The first line creates it with 3, but then the second line adds two more.

It looks like you're trying to pass task 1 with code intended for task 2. But to pass you need to follow the instructions for each task and not jump ahead.