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 trialBrandon Mukwamba
950 PointsLet's get the band back together. Can you please add "Paul" to the end of the beatles list using the appropriate list m
beatles = ["John"]
others = ["George", "Ringo"]
# Your code here
5 Answers
Steven Parker
231,268 PointsYou 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".
TEDI YUDI PERMADI
3,051 PointsPlease try this code!! beatles = ["John"] others = ["George", "Ringo"]
Your code here
beatles.append("Paul")
Anthony Tiseo
Front End Web Development Techdegree Graduate 17,439 Pointsbeatles = ["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 :(
Anthony Tiseo
Front End Web Development Techdegree Graduate 17,439 Pointsit also gives me this error:
Bummer: TypeError: 'builtin_function_or_method' object is not subscriptable
??
Steven Parker
231,268 PointsSee the comment I added to my answer.
leo homssi
5,111 Pointsbeatles = ["John"] others = ["George", "Ringo"]
Your code here
beatles.append("Paul")
jhaideep Thodupunuri
4,316 Pointsin Paul keep P as capital beatles.append("Paul")
Anthony Tiseo
Front End Web Development Techdegree Graduate 17,439 PointsAnthony Tiseo
Front End Web Development Techdegree Graduate 17,439 Points??
Steven Parker
231,268 PointsSteven Parker
231,268 PointsWhen 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 ().