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 trialVictor A Hernandez
1,957 PointsBeatles
What I'm doing wrong?.
beatles = ["John"]
others = ["George", "Ringo"]
# Your code here
beatles = ["Jonh"]
others = (["George", "Ringo"])
beatles.append ("Paul")
others.append ("Ringo")
beatles.extend (["beatles","others", "beatles.append"])
2 Answers
Peter Vann
36,427 PointsHi Victor!
The actual code is much simpler.
A few tips:
You don't have to retype the first two lines
Don't type a space between a function and its (
This passes both tasks:
beatles = ["John"]
others = ["George", "Ringo"]
# Your code here
beatles.append("Paul") # adds Paul to the beatles list
beatles.extend(others) # adds George and Ringo to the beatles list
# And now the band is back together!?! LOL)
I hope that helps.
Stay safe and happy coding!
Victor A Hernandez
1,957 PointsThank you Peter, I appreciate to much your help.