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

Iman Tirmizi
Iman Tirmizi
294 Points

What does "using a + sign means that your string needs to have an extra space" mean?

I'm trying to add the "name" variable to the string "Treehouse loves", and it's telling me that in order to combine them I need to have "an extra space". What does this mean?

strings.py
name='Iman'
subject= "Treehouse loves"

1 Answer

Steven Parker
Steven Parker
231,271 Points

That message is a bit misleading, since you still haven't added the code yet to combine your name with the new string.

But the hint it is giving may be useful while you finish your code, it means that when you join strings together, one of them needs an extra space or the words will be smashed together.