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 trialKevin Deras
588 PointsHow do I do this part ?
I dont understand how I am supposed to Join and replace its confusing could you walk me through ? Thanks
full_name = "Kevin E Deras"
name_list = full_name.split (" ")
greeting_list = "Hi, I'm Treehouse".split (" ")
greeting_list[2] = name_list[0]
greeting = greeting_list.join (" ")
1 Answer
Gavin Ralston
28,770 PointsRemember in the videos that join was the really weird-looking method?
You actually call join on the thing you want to join the items with, then pass in the items. So it feels backwards.
" ".join(list_of_things_to_join)
Gavin Ralston
28,770 PointsGavin Ralston
28,770 PointsMaybe reading it aloud a certain way will get it to stick better, like:
"Comma join this list of things"
",".join(['stuff', 'to', 'join', 'together'])