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!
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

Anastasia Kelebai
6,224 PointsPlease help me find mistake in my code
name = "Anastasia" treehouse = "Tree" + "house" email_greeting = print("{} loves {}".format(treehouse, name))
where is the mistake?
2 Answers

Kevin Faust
15,353 PointsYou dont print it. it should just be:
name = "Anastasia"
treehouse = "Tree" + "house"
email_greeting = "{} loves {}".format(treehouse, name)

Tobias Mahnert
89,414 PointsHello Anastasia,
You're very close. please check the code Below. you don't need the print statement when you assign values to a variable.
name = "My name"
treehouse = 'Tree' + 'house'
email_greeting = "{} loves {}".format(treehouse, name)
if you want to display code with the formal use ex:
mycode

Anastasia Kelebai
6,224 PointsThanks a lot! Now it worked