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 trialY. Kravets
10,350 PointsI did Complete Part 1 and 2, but I can't understand Part 3. What does it actually request me to do?
As in the topic
full_name = 'Yevgen Kravets'
name_list = full_name.split()
greeting_list = "Hi, I'm X".split()
greeting_list[2] = name_list[0]
greeting = greeting_list.join()
2 Answers
Juan Martin
14,335 PointsHello my friend, you're doing a great job! But there's a mistake using .join()
You should do it like this:
greeting = ' '.join(greeting_list)
Hope this helps :)
Y. Kravets
10,350 PointsThanks! I actually figured it too. For some reason I got confused with where to put a separator for joining the list in this case. But thanks for your help!
Juan Martin
14,335 PointsNo problem :)
Kenneth Love
Treehouse Guest TeacherLike I said in the video, and have said repeatedly, the .join()
syntax is weird in Python.