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!
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

eirikmulder
1,072 PointsProblem with number 4.
on challenge 4, i wrote this in, apparently it doesn't work. any suggestions?
full_name = "Eirik clay mulder"
name_list = full_name.split()
greeting_list = "Hi, I'm Eirik".split()
greeting = greeting_list.join(" ")
8 Answers
William Li
Courses Plus Student 26,867 PointsHi, I went through the challenge.
full_name = "Eirik clay mulder"
name_list = full_name.split()
greeting_list = "Hi, I'm Treehouse".split()
greeting_list[2] = name_list[0]
greeting = " ".join(greeting_list)

eirikmulder
1,072 Pointssorry about my indentation, i just got an account a couple days ago.
William Li
Courses Plus Student 26,867 Pointshi, eirikmulder , welcome to Treehouse, I fixed the code block for you.
William Li
Courses Plus Student 26,867 PointsYou got it almost correct. Except that list class in Python doesn't have the join() method, string class does. So change your last line to
greeting = " ".join(greeting_list)
it should work fine now.

eirikmulder
1,072 PointsThanks!

eirikmulder
1,072 PointsIt still isn't working, any more suggestions?
William Li
Courses Plus Student 26,867 Pointsshow me the link to the challenge

eirikmulder
1,072 Points
eirikmulder
1,072 Pointsproblem number 4

eirikmulder
1,072 Pointsthanks!

eirikmulder
1,072 Pointsit works now.