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

David Gabriel
seal-mask
.a{fill-rule:evenodd;}techdegree
David Gabriel
Python Web Development Techdegree Student 979 Points

string concatenate

still no progress

name = "Deja Vu huh" subject = "Treehouse_Loves" + ' ' + "name"

strings.py
name = "Deja Vu huh"
subject = "Treehouse_Loves" + ' ' +  "name"

2 Answers

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

Hi David,

First off, when you create a forum thread and people start helping you, keep answering in that thread instead of making a new one for the same problem. That way all answers will be found in the same place when others need help with the same question. You have created 3 threads for 1 problem now ignoring the answers in the earlier ones.

Back to the problem, you need to read the instructions a tad more closely, they ask you to write "Treehouse loves", not "Treehouse". And when you use your variable there is no need to use quote marks, just write name.

Look at this and see if you understand:

color = "Green"

text = "My favorite color is " + color

I hope that helps :)

Jonas

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

You're still using quote marks around your variable name, when using variables you just write the variable names to access your data. If you use quote marks like you do, you're using a String. Look at this:

// String 
"color"

// Variable
color

I hope that helps

Jonas