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 trial
naga Shanmukha
Courses Plus Student 12,482 PointsFinally, create a new variable named email_greeting that combines the treehouse variable, the string "loves", and the na
Finally, create a new variable named email_greeting that combines the treehouse variable, the string "loves", and the name variable with spaces between each item.
name = "Naga"
treehouse = "Tree" + "house"
email_greeting = (treehouse + "loves" + name)
2 Answers
Greg Kaleka
39,021 PointsHi Naga,
The only part your missing is the very end of the instruction: "with spaces between each item".
Right now, you're outputting TreehouselovesNaga, instead of Treehouse loves Naga.
All you need to do is add a space before and after "love" within the same string you're already using.
name = "Naga"
treehouse = "Tree" + "house"
email_greeting = (treehouse + " loves " + name)
Brandon Wall
5,512 Pointsemail_greeting = (treehouse + " loves " + name)
You need to throw some spaces onto the beginning and end of the word 'loves'