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 trialMarcos Torrico
300 PointsHow do I properly write this?
I know how to use .format() when printing but it says to do it without printing? How do i write .format() like that?
name = "marcos"
subject= "Treehouse loves {}".format(marcos)
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHey Marcos,
You pretty much have it, except you are passing in your name as the parameter in the format()
method. You need to be passing in the variable that is storing your name.
subject = "Treehouse loves {}".format(name)
Keep Coding! :)
Marcos Torrico
300 PointsMarcos Torrico
300 PointsThank you so much!