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

Python Python Basics (2015) Python Data Types String concatenation

Strings

What do I do on the 2nd part of the String Concatenation

strings.py
name = "Rydan"

3 Answers

Hi 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
Steven Parker
231,248 Points

Try breaking the task down into steps:

  • Make a new variable named subject :point_left: start with the variable name and an equal sign, like in task 1
  • ...the string "Treehouse loves " :point_left: so you put that after the equals, quotes and all
  • ...that concatenates (uses the + sign) :point_left: and then you put that symbol
  • ... and your name variable. :point_left: and finally your other variable, name

That makes it easy, right?

Thank you!

Steven Parker
Steven Parker
231,248 Points

Ryan Deckard — Glad to help. Remember to mark the question closed by choosing a "best ansswer".

Happy coding!