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

justin alexis
justin alexis
373 Points

Not really sure what im supposed to do for task 2..i keep reviewing the lesson but nothing seems to click for me

any advice

name.py

2 Answers

Ryan Ruscett
Ryan Ruscett
23,309 Points

You need to create a variable called treehouse by combining two strings.

You have two options.

option 1

str1 = "Tree"
str2="house"
treehouse = str1 + str2

option 2 (best option) since it says combining two strings and not to variables. We will do just that.

treehouse = "Tree" + "house"

Hope that helps. let me know if it does or does not.

justin alexis
justin alexis
373 Points

that really helps..thanks

Ryan Ruscett
Ryan Ruscett
23,309 Points

Awesome. Don't forget to use best answer if the questions help you out. Thanks!