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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Dupree Ihegboro](https://secure.gravatar.com/avatar/c9c9560492738f2e01f43f1b54f682cc?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Dupree Ihegboro
265 Pointsconcatenation
problem with the placeholders
name = 'dupree'
treehouse = "Tree" + "house"
email_greeting = ""X loves Y" but with" {}+"for X and"{}+" for Y".format(treehouse,name)
2 Answers
![Samuel Webb](https://uploads.teamtreehouse.com/production/profile-photos/990082/micro_sam.jpg)
Samuel Webb
25,370 PointsYou're trying to make it a little more complicated than you need to. In this example you're not using the .format() function. You can just use simple concatenation to achieve this. Your code should look like this for the final line:
email_greeting = treehouse + " loves " + name
![Ogaga Ejuoneatse](https://uploads.teamtreehouse.com/production/profile-photos/2602322/micro_ogaga.jpg)
Ogaga Ejuoneatse
Courses Plus Student 2,441 PointsThe code below works ..... Dupree! you were on the right track( your initial attempt helped with this solution)
the first place holder {} stands for X and the second place holder {} stands for Y
email_greeting = ("{} loves {} ".format(treehouse,name))
![Kenneth Love](https://uploads.teamtreehouse.com/production/profile-photos/710512/micro_TeacherShoot-Kenneth.jpg)
Kenneth Love
Treehouse Guest TeacherWhy do you have parentheses around the entire string?
![Ogaga Ejuoneatse](https://uploads.teamtreehouse.com/production/profile-photos/2602322/micro_ogaga.jpg)
Ogaga Ejuoneatse
Courses Plus Student 2,441 PointsI assumed that because we are using python 3.4 a parentheses was needed. I've just realized that isn't the case :)
Dupree! Below is the new improved code :)
email_greeting = "{} loves {} ".format(treehouse,name)