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

Joining list back to string

I'm not sure how to join the list "greeting_list" into a string with spaces between the individual items.

I've needed to ask questions for nearly each step because I didn't find how to do it in the video. Is there something else I should be using as a reference? Because if I rely on the videos alone I can't figure out how to do some of these exercises. Thanks.

greeting_list.py
full_name = "Ben Muresan"
name_list = full_name.split()

greeting_list = "Hi, I'm Treehouse".split()

greeting_list [2] = name_list [0]

greeting = str(greeting_list)

1 Answer

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Start at about 3:30 in this video. The joining of lists into strings is a bit of a weird spot in Python.

Your right Ken, it did go over it. Thanks!