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 trialsurprisemaimane
5,414 PointsStuck on Task 4 of 4...
Almost done! Now, swap the value of "Treehouse" in greeting_list to be the first item in your name_list variable.... My answer is below...
full_name = "Full Name" name_list = full_name.splt() greeting_list = "Hi, I'm Treehouse" name_list[0] = greeting_list[2]
I keep getting task one no longer working... Please assist
full_name = "Surprise Maimane"
name_list = full_name.split()
greeting_list = "Hi, I'm Treethouse".split()
name_list[0]
2 Answers
Chris Freeman
Treehouse Moderator 68,441 PointsYou had the last statement flipped. Plus one typo:
full_name = "Surprise Maimane"
name_list = full_name.split()
greeting_list = "Hi, I'm Treehouse".split() #<-- fixed typo
greeting_list[2] = name_list[0]
Corey Paris
Courses Plus Student 997 PointsBah, the question is worded backwards. In fact, most of the questions have this problem. It's like they're trying to trick you (it's just bad writing of course). Instead of giving technical but clear orders (Take the 3rd list in etc and make it the 1st list in etc), it dumbs it down, and makes it unclear what is being asked. "Now, swap the value of "Treehouse" in greeting_list to be the first item in your name_list variable".... This makes it sound exactly what OP and I tried; make the first item in your name_list variable, Treehouse. To make the original clearer, "Make the first item in your name_list variable, Treehouse, from the greeting list variable. Gets rid of the passive voice.