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 Can someone help me out on the 2nd course - step 7(string formatting) - challenge task 2, on python basic

I typed in name = "xyz" subject = "Treehouse loves {}".format(xyz)

This seems to be what it's asking me to do but it's a no go. Can someone help a friendly coder out plz.

Steven Parker
Steven Parker
243,658 Points

Can you provide a link to the challenge itself?

2 Answers

Steven Parker
Steven Parker
243,658 Points

Even without the challenge, I think I've spotted it...

:point_right: It looks like you're not using the right variable for the format.

You assigned a variable name but your format argument is xyz.

Thank you Steven P. I'm still quite not sure how to code this. Here is the link. https://teamtreehouse.com/library/python-basics/python-data-types/string-formatting

Nevermind. I just got it. Thank you very much Steven P.