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

Evgeniy Ivchenkov
Evgeniy Ivchenkov
865 Points

My code works, checked it in my IDE but I don't pass. Means I'm cool with this task unlike you.

My code works, checked it in my IDE but I don't pass. Means I'm cool with this task and you're not.

strings.py
name = "Evgenii"
subject = str.format("Treehouse loves {}", name)

2 Answers

Logan R
Logan R
22,989 Points

Hey! I know the pains. I think for quite a few, it tries to match your code to an answer, resulting in issues where sometimes things like "func myfunction ()" will be reported as wrong because there's a space between myfunction and ().

They probably try to stick to the "subject = "Treehouse loves {}".format(name)" style to try and confuse fewer people. That way it's more standardized.

Evgeniy Ivchenkov
Evgeniy Ivchenkov
865 Points

Hey, thanks for a comment. Still I think it's a bug because output value matches and there were no specifications on how-to that I ignored. Anyways, hope that dev team will figure something out, such things really freak out. Videos on pyhton are great and I really enjoy them but bugs in challenges like that make learning process much less pleasant.