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
dankang
904 PointsChallenge task 3/4
"Almost done! Now, change "Treehouse" in greeting_list to the first item in your name_list variable."
full_name = 'Dan Kang' name_list = str.split(full_name) greeting_list = "Hi, I'm " + str(name_list[0])
What's wrong here? Running the code in my local python interpreter shows "Hi, I'm Dan"..
2 Answers
Devin Scheu
66,191 PointsYour code should look something like this:
full_name = "Chris Freeman"
name_list = full_name.split()
greeting_list = "Hi, I'm Treehouse".split()
greeting_list[2] = name_list[0]
dankang
904 PointsThanks Devin, I figured it out. I did end up doing what you did and got past that part. I was misinterpreting the instructions.