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

I'm really missing something. I have tried name ="Carole" subject= .format ("Carole") "Treehouse loves {} "

I am struggling with how "subject" applies. Maybe I do not understand the question and where we are going. I do have a habit with this of making it harder but...I can't get it and want to! Thanks!

1 Answer

You have to apply the ".format()" function to a string, in this case the string is "Treehouse loves {}!" and that placeholder is where you are going to put your name with the format function.

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

Like you can see you don't have to put the literal string "Carole" as a parameter in the format function, you have to put the variable "name" that points to the string "Carole".

I hope that helps a little bit.

Thank you! Yes, that is exactly where I was getting a little fuzzy. sometimes I try and over complicate things. the role of "subject" had me side tracked.