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 trialNick Stevenson
2,191 PointsThe 'recheck work' result is telling me the code is broken when it is not. Output.html shows that my code is correct.
am I going mad?
full_name = "Ben Kingsley"
name_list = full_name.split()
greeting_list = "Hi, I'm a treehouse".split()
greeting_list[3] = name_list[0]
2 Answers
Chris Freeman
Treehouse Moderator 68,441 PointsWhile your code is correctly written, it is not exactly what the challenge is asking for. In Step 2, you are asked to make greeting_list
from the string "Hi, I'm Treehouse". Notice the lack of the word "a" in the string. The capitalization of Treehouse does not appear to affect the challenge.
Removing the "a", and correcting the index referring to treehouse, your last two statements now look like:
greeting_list = "Hi, I'm treehouse".split()
greeting_list[2] = name_list[0]
FWIW, I made the exact mistake my first time through that challenge.
Nick Stevenson
2,191 PointsThanks Chris, the tool needs me to do exactly what was asked - makes sense.
Cheers, N