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 trialAdrianne Browning
2,602 Pointshow do you create a variable name treehouse by combining the two strings tree and house
help please
name = "adrianne brownin
Adrianne Browning
2,602 Pointstrevor currie that doesnt not work
Britney Bahrns
5,860 Pointsg
3 Answers
William Li
Courses Plus Student 26,868 PointsThis 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"
Adrianne Browning
2,602 Pointsthat didn't work thanks
eirikmulder
1,072 Pointstreehouse = "tree" + "house"
Trevor Currie
9,289 PointsTrevor Currie
9,289 PointsCombining 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!