Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics (Retired) Shopping List Lists and Strings

Python Lists 4/4 challenge

I'm getting the following "Bummer" message:

Your greeting doesn't seem to be the right string! Got 'Hi, I'm Lank Treehouse', expected 'Hi, I'm Lank Treehouse'.

I can't see anything wrong. What am i missing?

full_name = "Lank Goodness"
name_list = full_name.split()
greeting_list = "Hi, I'm a Treehouse".split()
greeting_list [2] = name_list [0]
greeting = " ".join(greeting_list)

2 Answers

Chris Freeman
Chris Freeman
Treehouse Moderator 67,989 Points

Ha! You have the same error I had! You have an extra "a" in your greeting string. Change it to

greeting_list = "Hi, I'm Treehouse".split()  # <-- removed 'a'
greeting_list [2] = name_list [0]  # <-- NOW 'Treehouse IS at index 2

I think in one of the video's the example string includes the "a", but the challenge does not.


Travis Bailey
Travis Bailey
13,673 Points

Sorry had to delete my first two posts as I was completely wrong.

My code was very similar to yours and it passed. The only difference was I didn't have a space between the selector and the variable name on line 4.

greeting_list[2] = name_list[0]