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

variable subject has to start with "treehouse loves"

where is this code wrong?

strings.py
name = " Simon Gogwe "
subject = " Treehouse loves "
" Treehouse loves " + " Simon Gogwe "

1 Answer

Caleb Kemp
Caleb Kemp
12,754 Points

Okay, your pretty close, right now you have this

name = " Simon Gogwe "
subject = " Treehouse loves "
" Treehouse loves " + " Simon Gogwe "

however, instead of

subject = " Treehouse loves "
" Treehouse loves " + " Simon Gogwe "

it wants you to do that all on one line as

subject = " Treehouse loves " + name

then there is one more slight error to get it to work The code requires that you actually input "Treehouse loves" right now, your's is " Treehouse loves ", you have an extra space at the beginning and end of the string, and that will cause it to fail hope it helps