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

Let's get the band back together. Can you please add "Paul" to the end of the beatles list using the appropriate list m

beatles.py
beatles = ["John"]
others = ["George", "Ringo"]
# Your code here

5 Answers

Steven Parker
Steven Parker
231,275 Points

You didn't say what kind of trouble you are having, but as a generic hint the list method you probably want to use here is "append".

Steven Parker
Steven Parker
231,275 Points

When you call a function or method, follow the method name with parentheses in which you place any arguments.

But in this case, it looks like you used square brackets [] instead of parentheses ().

Please try this code!! beatles = ["John"] others = ["George", "Ringo"]

Your code here

beatles.append("Paul")

Anthony Tiseo
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Anthony Tiseo
Front End Web Development Techdegree Graduate 17,439 Points

beatles = ["John"] others = ["George", "Ringo"]

beatles.append["Paul"]

but it says Paul not defined I tried making a variable equally Paul but that didn't seem to work either :(

beatles = ["John"] others = ["George", "Ringo"]

Your code here

beatles.append("Paul")

in Paul keep P as capital beatles.append("Paul")