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

challenge 1 of 3 pliz help am stuck

email_greeting i am creating the variable like email_greeting = ("Treehouse" +loves + "Herbert")

Well is love assigned to a variable? If not then it should be in quotes.

email_greeting = ("Treehouse" + "loves" + "Herbert") also if you are concatenating strings here and you want to print out "Treehouse loves Herbert" , you need to add a blank space to the end of treehouse and loves.

1 Answer

Hi Hebert, can u try a code that uses format, linking yo name varible and your treehouse variable for x and y. look at my example below.

name = "simba"

treehouse = "Tree" + "house"

email_greeting = "{} loves {}".format(treehouse, name)

thank you so much Mr Simba

thank you so much Mr Simba