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 trialJosh Goodhardt
22,119 PointsString exercise difficulty
Hi, I have entered the following but can't see where I am going wrong... name = "Aron" subject = "Treehouse loves {}.format(name)"
the error message says something about using the brackets, which I am.
Can you help me figure this out?
name = "Aron"
subject = "Treehouse loves {}.format(name)"
2 Answers
behar
10,799 PointsYour very close, but your not using .format correctly, it should be placed outside the "". Like this:
name = "Aron"
subject = "Treehouse loves {}".format(name)
behar
10,799 Pointslol was too slow :P
Josh Goodhardt
22,119 PointsThanks for your help guys!!
Tim Rach
Full Stack JavaScript Techdegree Student 25,127 PointsTim Rach
Full Stack JavaScript Techdegree Student 25,127 Points.format(name) needs to be outside the string (")