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
Rajkunwer Singh
Courses Plus Student 139 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. whta is the answer.
5 Answers
Rajkunwer Singh
Courses Plus Student 139 PointsI have done coding like this name="Raj" treehouse= "Tree"+"house" email_greeting=(treehouse.rjust(5)+"loves".rjust(5)+name.rjust(5))
Sean T. Unwin
28,690 PointsThere is not a requirement to use rjust().
There needs to be a space before and after 'loves', however.
Rajkunwer Singh
Courses Plus Student 139 Pointsshould i only use space from my keyboard while write script.
Rajkunwer Singh
Courses Plus Student 139 PointsCan you tell me what script i need to write for that because i have no idea what i need to do.
Sean T. Unwin
28,690 PointsPut spaces (with the spacebar) around the word, 'loves', while within the quotes.
Perhaps it would be a good idea to watch the String Concatenation lesson.
Rajkunwer Singh
Courses Plus Student 139 PointsBut i have done that it is not working
Sean T. Unwin
28,690 PointsShow us what you have tried, please.
Rajkunwer Singh
Courses Plus Student 139 PointsOh yes i got it and it worked thank you for your reply.
Rajkunwer Singh
Courses Plus Student 139 Pointsname="Raj"
treehouse= "Tree"+"house"
email_greeting=(treehouse+ "loves" +name)
Sean T. Unwin
28,690 PointsYou're still not putting a space on either side of the word, loves --> ` " loves ".
There is not a need for round brackets either.
For future reference, please see this thread regarding posting code to the forum. :) I have edited your post to display the cold properly