Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics (Retired) Ins & Outs Ins & Outs

Question: "create a variable named treehouse by combining two strings."

I have entered Task 1 correctly and it passed, but I get warning message saying "Task 1 isnt passing." I know my code might be wrong for #2 (which I am trying to figure out) but after every attempt I have to go back to Task #1.

Hi JC,

Post your code so we can see what's going on.

2 Answers

Stone Preston
Stone Preston
42,016 Points

you simply need to concatenate 2 strings together using the + operator. you need to concatenate "Tree" with "house" to make "Treehouse". assign the concatenated strings to the variable treehouse

name = "stone"
treehouse = "Tree" + "house"

Thank you. I guess I was confused by what my name had to do with Task #2.

Stone Preston
Stone Preston
42,016 Points

ah yeah sometimes the tasks are not related, though most of the time they tie in at the end of the challenge if not sooner.