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

AR Ehsan
AR Ehsan
7,912 Points

Hi. 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.py
name = ('Abdullah')
treehouse = ("Tree + house")

5 Answers

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

Don't put the parenthesis there when assigning a string to variable.

name = 'Abdullah'
treehouse = "Tree" + "house"
AR Ehsan
AR Ehsan
7,912 Points

Thank you. Also, I didn't quite understand task three. If you could help me with that?

William Li
William Li
Courses Plus Student 26,868 Points
email_greeting = treehouse + " loves " + name
AR Ehsan
AR Ehsan
7,912 Points

name = '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
AR Ehsan
7,912 Points

I did exactly what you told me. It still didn't work ?