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

Y. Kravets
Y. Kravets
10,350 Points

I 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

greeting_list.py
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
Juan Martin
14,335 Points

Hello 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
Y. Kravets
10,350 Points

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

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Like I said in the video, and have said repeatedly, the .join() syntax is weird in Python.