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

Sandra-Lee Rowe
3,757 Pointswhat am I doing wrong
beatles = ["John"]
others = ["George", "Ringo"]
beatles.append("Paul")
others = [
George and Ringo
]
beatles.extend(others)
1 Answer

Travis Alstrand
Treehouse Project ReviewerHey there Sandra-Lee Rowe 👋
When running your provided code in the second stage of this challenge, I get the following error message.
Bummer: IndentationError: unexpected indent
This is due to lines 4, 5, 6 & 7 being indented to the right. You'll want to highlight all those lines and SHIFT + TAB
them to the left. Indentation is a crucial part of syntax with Python and can be pretty tricky at first.
beatles = ["John"]
others = ["George", "Ringo"]
beatles.append("Paul")
others = [
George and Ringo
]
beatles.extend(others)
After that, I get this error message:
Bummer: NameError: name 'George' is not defined
This is due to the second assignment to your others
list. Those names aren't wrapped in quotation marks so it's considering them variables, but there are no defined variables with those names. We also already have others
defined above just as we need it. For the second part of this challenge, we only need your last line of code to add the contents of others
into beatles
.
beatles = ["John"]
others = ["George", "Ringo"]
beatles.append("Paul")
beatles.extend(others)
I hope this makes sense and helps 👍