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 Introducing Lists Meet Lists All You Need Is Lists

cem günaltay
cem günaltay
1,332 Points

beatles.extend([others]) doesn't work help please

beatles.extend[(others)] doesn't work pop out bummer ??? any other solutions??

beatles.py
beatles = ["John"]
others = ["George", "Ringo"]
beatles.append(others)

3 Answers

Steven Parker
Steven Parker
231,271 Points

Don't forget the part of the instructions that say "Important: In each task of this code challenge, the code you write should be added to the code from the previous task."

So the code added for task 1 to add "Paul" should remain as you add the others.

And you were right about using "extend", but the syntax doesn't involve square brackets.

cem günaltay
cem günaltay
1,332 Points

i'm sorry my question is the next one , saysLet's get the band back together. Can you please add "Paul" to the end of the beatles list using the appropriate list method? My answer is ; beatles = ["John"] others = ["George", "Ringo"] beatles.extend(others) but i can't pass

Steven Parker
Steven Parker
231,271 Points

For task 1, you need to add "Paul" using append. "Paul" is not one of the "others" (you will use them in task 2).

cem günaltay
cem günaltay
1,332 Points

beatles.extend(others) Isn't the answers of task 2 but i can't pass