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 trialAccountDeleted PlsMsgAryan
71 PointsWhat do you mean by extra space
So it says there needs to be extra space on those strings, so I wrote: subject = "Treehouse loves" + My name
name = "Yungi"
subject = "Treehouse loves" + name
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! If we were to print out the value of subject
as it is in your code right now, it would print out this:
Treehouse lovesYungi
But we want the string stored in subject to look like this:
Treehouse loves Yungi
To accomplish this, you need to include an extra space at the end of "Treehouse loves".
# you wrote
subject = "Treehouse loves" + name
# that should be
subject = "Treehouse loves " + name
Note the extra space between the "s" and the closing quotation marks.
Hope this helps!