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

can't find the solution

i'am trying and trying with this task but i never get it right.

6 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Mladen;

The code challenge checker can be rather picky. You should be fine without concatenating the place holder with the string. I believe the challenge instructions show it as Treehouse loves {} without breaking it apart.

Post back if you are still stuck.

Happy coding,
Ken

Hello Ken,

name = "Mladen"
subject = "Treehouse loves " + "{}".format(name)

I'm using same code on Python anywhere and it works. can't understand why it dosent accept my answer at treehouse /Mladen

[MOD: added ```python markdown formatting]

Chris Freeman
Chris Freeman
Treehouse Moderator 68,441 Points

This solution should have been accepted. Tagging Kenneth Love to review grader restrictions.

Thank you Andreas! Keep up the good work with Python.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Mladen;

Can you post the code you have been trying?

Thanks,
Ken

Thank you, it work's! /Mladen

I actually found the code is this thread to be more helpful:

https://teamtreehouse.com/community/works-in-console-but-doesnt-pass-the-challenge