"Python Basics (Retired)" was retired on January 7, 2016.

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".

treehouse ="Tree" + "house"

name.py
name = "Sonam"
treehouse ="Tree" + "House"

5 Answers

Yep - but with a small 'h':

treehouse = "Tree" + "house"

That works for me.

Steve.

The h in house is not capital.

It was in the example that you posted.

I'm not the author of the post. I commented as you :P

ahhh my bad! No worries. Thanks!

name="venu" site1="Tree" site2="house" treehouse='$site1'+'$site2'

compiler not taking this answer?

I don't think you need the $ signs. And you've surrounded variable names with quotation marks.

I think

treehouse = site1 + site2

should work. But the challenge isn't expecting two interim variable declarations, I don't think. It is after something more like:

name = "Steve"
treehouse = "Tree" + "house"

Steve.