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 trialSardor Latipov
5,609 Pointstask 2 of 2 is holding me up. Someone please wright the correct code.
I have tried every possible ways, it's rejecting me. Task 2 of 2
https://teamtreehouse.com/library/python-basics/python-data-types/string-formatting
Sardor Latipov
5,609 PointsThank you :) I knew it didn't look wright. No, write )
3 Answers
Thomas Fildes
22,687 PointsHi Sardor,
Here is the correct code below:
name = "Type Your Name Here"
subject = "Treehouse loves {}".format(name)
Sardor Latipov
5,609 PointsGreat. Thank you
anthony smith
212 PointsI've been doing this and i am still getting an error
ali fadhil
Courses Plus Student 674 Pointswell u dont need to write:-
subject = "treehouse loves {} ".format(name)
u need to write this:-
subject = 'treehouse loves {} '.format(name)
just don
t use the " and use '
Nate Thomas
Python Web Development Techdegree Student 269 PointsNate Thomas
Python Web Development Techdegree Student 269 Pointswrite*