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!

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

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.