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 (Retired) Ins & Outs Ins & Outs

Now, create a variable named treehouse by combining two strings, "Tree" and "house".

I'm not understanding this at all. I rewatched the videos multiple times

1 Answer

your variable will be treehouse, so your line of code will begin with treehouse =

What follows the equal sign? You need to use string concatenation, this works with the + operator in python.

For a variable named something, made out of the words "some" and "thing" you would add the two strings together using the + sign.

For instance try the following code at a python prompt

print("some" + "thing")