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

Python Python Basics (Retired) Ins & Outs Ins & Outs

Anastasia Kelebai
Anastasia Kelebai
6,224 Points

Please 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
Kevin Faust
15,353 Points

You dont print it. it should just be:

name = "Anastasia"
treehouse = "Tree" + "house"
email_greeting = "{} loves {}".format(treehouse, name)
Tobias Mahnert
Tobias Mahnert
89,414 Points

Hello 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: