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 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 68,423 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,675 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]