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

Hector Velasquez
Hector Velasquez
222 Points

Cant make new variable name subject that concatenates with variable name my name... Please help

I understand the first task. Create variable named name with my name. Done Easy. However, it is the second task that I get stuck on. Please any input will be helpful. Thank you!

strings.py
name="Hector"
name="subject"

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hi Hector,

The first part you did great. The second part, I feel you may have misinterpreted the instructions.

You need a variable named subject, so exactly like the first task, it will start with subject =.

Next you'll need to concatenate the given string "Treehouse loves " (note the space) with the variable you made in the first task name (not the string you assigned it, but the actual variable).
If you're still stuck a bit, I do recommend reviewing the video for a refresher. Kenneth covers concatenation starting at 3:40.

Hope this helps! Keep Coding! :) :dizzy: