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 trialjohn davis
324 Pointspython basics 'string concatenation'. i must have missed something. not answering part 2 of the questions correctly.
OK! Make a new variable named subject that concatenates (uses the + sign) the string "Treehouse loves" and your name variable.
i keep doing something wrong. i've reviewed the video but i can't seem to see the mistake
name="john"
Subject='treehouse loves' + 'john'
2 Answers
Chris Freeman
Treehouse Moderator 68,457 PointsYou are very close but there are three errors:
-
subject
Should not be capitalized - there needs to be a space between loves and the name
- the statement for
subject
should use the variablename
and not a literal string for the name
Post back if you need more help. Good luck!!!
john davis
324 Pointschris, thank you so much. a few minutes after posting, i figured it out. i was distracted while watching the video at work during lunch. i had to go back over it and then i was able to correct my mistakes.
I'm enjoying learning python and i truly appreciate your assistance.
thanks again!
john