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

Jt Miller
Jt Miller
1,242 Points

strings.py

It tells me to "Treehouse loves" and the name variable in a new variable named subject but doesn't work.

strings.py
name = "Justice"
subject = "Treehouse loves" + name
Jt Miller
Jt Miller
1,242 Points

i was forgetting to print subject figured it out my bad

1 Answer

Michael Hulet
Michael Hulet
47,913 Points

The challenge text is poorly worded here. I know it says it wants you to use the string "Treehouse loves", but it actually wants an extra space on the end of that, so it should be "Treehouse loves ". I'm gonna tag Kenneth Love on this so he might see it and take a look at the wording of the challenge