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 trialAR Ehsan
7,912 PointsHi. When I get to task two, it says you haven't assigned a variable to treehouse. I can't figure out exactly how to doit
name = ('Abdul') treehouse= "tree + house")
This is the code I typed so far. Please help. Thank you
name = ('Abdullah')
treehouse = ("Tree + house")
5 Answers
William Li
Courses Plus Student 26,868 PointsDon't put the parenthesis there when assigning a string to variable.
name = 'Abdullah'
treehouse = "Tree" + "house"
AR Ehsan
7,912 Pointsname = 'Abdullah' treehouse = "Tree" + "house" email_greeting = treehouse + " love " + name
This is the exact code I typed. When I get to the last one it says try again. Why is that?
AR Ehsan
7,912 PointsI did exactly what you told me. It still didn't work ?
AR Ehsan
7,912 PointsThanks
AR Ehsan
7,912 PointsAR Ehsan
7,912 PointsThank you. Also, I didn't quite understand task three. If you could help me with that?
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 Pointsemail_greeting = treehouse + " loves " + name