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

What am I missing?

OK, now use .format() on the string "Treehouse loves {}" to put your name into the placeholder. Assign this to the variable subject (so start with subject =).

name = "Ivor"
subject = "Treehouse loves {} ".format(name)

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,862 Points

Hi Ivor,

First I added markdown to your post so that the code snippet can be read clearly (please refer to the Markdown CheatSheet when posting code in the Community). It's also best to click the "Need Help" button from the challenge directly, so others can refer specifically to the challenge that you are having problems with.

So, without actually seeing the challenge, I can't be completely sure...

Everything looks okay, except it looks like you have a space after the {} before the closing quote. Also, Im not sure, but I think there is supposed to be some sort of closing punctuation in the formatted string?? Challenges are very specific and very picky, and everything needs to be exactly as it asks.

Hope that helps. If you're still stuck, either ask directly from the challenge or post a direct link to the challenge here.

Keep Coding :dizzy:

Thank You for all the advice, and it was the space after {} that caused the issue!