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 Python Basics (2015) Python Data Types String Formatting

Fedor Eduard Constantin
PLUS
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 :)

strings.py
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

Try:

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