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

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

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

name = 'Abdullah'
treehouse = "Tree" + "house"

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

email_greeting = treehouse + " loves " + name

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?

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

Beats me.

Imgur

Thanks