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!
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

MUZ140716 Taurayi Kwenda
2,781 PointsLINKING TWO VARIABLES IN A SENTENCE
I am facing a challenge in how to link previously defined variables into a sentence. I have tried several changes but failed to pass the last challenge.
name = "Taurayi"
treehouse = "Tree" + "house"
email_greeting = treehouse + "loves" + name
3 Answers

Ken Alger
Treehouse TeacherTaurayi;
Welcome to Treehouse!
You are very close. Right now your output is "TreehouselovesTaurayi". You need to add a space before and after "loves" in your code.
Happy coding,
Ken

Drew Bissonnette
309 PointsHey Ken,
I am having this same issue, I have a space between treehouse and name but still come back with "try again." Any ideas?
name = "Drew"
treehouse = "Tree" + "house"
email_greeting = treehouse + "loves" + name
if name == "Drew":
print("{} is cool! ".format(name))
else:
print("{} Treehouse ".format(treehouse))

MUZ140716 Taurayi Kwenda
2,781 PointsWrite your code as follows :
name = drew treehouse = " Tree + house " email_greeting = Drew " loves " treehouse

MUZ140716 Taurayi Kwenda
2,781 PointsHi sorry you shld code as follows Drew
name "Drew" treehouse = "Tree" + "house" email_greeting = "Tree house loves Drew"
MUZ140716 Taurayi Kwenda
2,781 PointsMUZ140716 Taurayi Kwenda
2,781 PointsThe first two tasks l have passed them but the last task where l am supposed to link the two previous variables in a sentence that is where l am facing a challenge.