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 trialSimon Gogwe
3,648 Pointsvariable subject has to start with "treehouse loves"
where is this code wrong?
name = " Simon Gogwe "
subject = " Treehouse loves "
" Treehouse loves " + " Simon Gogwe "
1 Answer
Caleb Kemp
12,755 PointsOkay, your pretty close, right now you have this
name = " Simon Gogwe "
subject = " Treehouse loves "
" Treehouse loves " + " Simon Gogwe "
however, instead of
subject = " Treehouse loves "
" Treehouse loves " + " Simon Gogwe "
it wants you to do that all on one line as
subject = " Treehouse loves " + name
then there is one more slight error to get it to work The code requires that you actually input "Treehouse loves" right now, your's is " Treehouse loves ", you have an extra space at the beginning and end of the string, and that will cause it to fail hope it helps