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 trialFedor Eduard Constantin
Courses Plus Student 198 PointsI try to make the quiz but i hit a bummer
Bummer! Be sure to use the {}
placeholder and the .format()
method. Restart Preview Get Help
name = "eddy" subject = "treehouse loves {} " print (subject .format (name))
what i am missing i saw the video like 3 times but i dont get what i am doing wrong , or i am stuped af :)
name = "eddy"
subject = "treehouse loves "
subject = "trehouse loves {} "
print (subject .format (name))
3 Answers
Unsubscribed User
16,600 PointsYou're close, but can do all of this in one line. Also, double check your spelling of Treehouse and remove the extra space after the curly braces.
name = "eddy"
subject = "Treehouse loves {}".format(name)
robin Bindewald
2,249 PointsThe Spaces where the problem
Try:
name = "eddy" subject = "treehouse loves " subject = "treehouse loves {} " print(subject.format(name))
Fedor Eduard Constantin
Courses Plus Student 198 PointsThanks a lot mates you rock :)