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 trialRichmond Baker
620 PointsI can't seem to get Task 2 of 4 correct. What have I missed? I don't think I understand the question completely.
Since I am a newbie at this. I sometimes don't grasp exactly what you are looking for in these questions. This one has taken me over an hour. Sad I know but hints would be nice, or links to examples, or a direct link to the video and time in the video in which you explain what we are being asked. Any of those would be nice. Also I lose my place every time I go back to look at the video. It would be nice to be able to keep my work or give me the availability to have the video pop up.
full_name = "Rich Baker"
name_list = full_name.split()
string = "Hi, I'm Treehouse"
greeting_list = [string.split(' ')]
3 Answers
Jamison Imhoff
12,460 PointsHi Rich,
You are on the right track, but you are adding an unnecessary step. You can add .split() to the end of a string to split it.
your 3rd line would work as
greeting_list = "Hi, I'm Treehouse".split()
as to the video issue, I usually just open the video from the step before in another window so that I can look at it really quick without losing my place!
Hopefully this helps!
MUZ140153 Tatenda Zimba
2,782 Pointsgreeting_list = "Hi, I'm Treehouse".split()
Richmond Baker
620 PointsThank you both. I am glad you are out there helping.