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

how do you create a variable name treehouse by combining the two strings tree and house

help please

name.py
name = "adrianne brownin

Combining two strings is called "concatenation," and in python, it's really simple! You just use the plus sign ("+") between two strings, like this:

combinedString = "string1" + "string2"

Make sure you're following PEP8 standards so there aren't errors due to formatting!

trevor currie that doesnt not work

g

3 Answers

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

This challenge is very specific, and you need to do exactly what it asked.

  • a variable named treehouse
  • two strings "Tree" and "house".
  • combined these two strings and assign the value to the variable
name = "adrianne brownin"
treehouse = "Tree" + "house"

that didn't work thanks

treehouse = "tree" + "house"