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 trialDavid Russell
Courses Plus Student 285 PointsLost on this one.
Just drew a blank
name = "David"
.format("David")
1 Answer
nakalkucing
12,964 PointsThe challenge asks you to use .format to put the name variable into the string "Treehouse loves {}". You currently have your .format attached to nothing. You also told it to
.format("David")
you need to
.format(name)
So, your code needs to have the string "Treehouse loves {}" formatted with name. You also need to assign the formatted string the name subject. Does that make sense? Hope this helps. :)