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

String Concatenation: Challenge 2

Hello,

I have review the video a number of times and am still having difficulty with this string. my codes have looks something like this:

name = "justine" subject = "Treehouse " + "loves" subjects += `name'

please assist me in resolving this problem.

Thank you,

Justine

strings.py

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! I think you're overthinking this, but I can see that you've tried :smiley: Here's what it's looking for:

name = "justine"
subject = "Treehouse loves " + name

We set our name variable equal to "justine" (just as you have done). Then we create subject and assign to it "Treehouse loves " and concatenate the value of name onto the end. If you were to now print out the value of subject it would print "Treehouse loves justine". Hope this helps! :sparkles:

Thank you for your help!