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 trialRyan Deckard
130 PointsStrings
What do I do on the 2nd part of the String Concatenation
name = "Rydan"
3 Answers
Jon Mirow
9,864 PointsHi there!
It's asking you to use the plus sign to concat (join together) the name variable with the string "Treehouse Loves" and put that in a variable called subject
So the subject would hold something like this:
print(subject)
"Treehouse Loves Ryden"
Steven Parker
231,275 PointsTry breaking the task down into steps:
-
Make a new variable named
subject
start with the variable name and an equal sign, like in task 1 - ...the string "Treehouse loves " so you put that after the equals, quotes and all
- ...that concatenates (uses the + sign) and then you put that symbol
- ... and your name variable. and finally your other variable, name
That makes it easy, right?
Ryan Deckard
130 PointsThank you!
Steven Parker
231,275 PointsRyan Deckard — Glad to help. Remember to mark the question closed by choosing a "best ansswer".
Happy coding!