Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics (2015) Python Data Types String Formatting

Fedor Eduard Constantin
Fedor Eduard Constantin
Courses Plus Student 198 Points

I 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

You'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
robin Bindewald
2,249 Points

The Spaces where the problem


name = "eddy" subject = "treehouse loves " subject = "treehouse loves {} " print(subject.format(name))