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

yuval churi
PLUS
yuval churi
Courses Plus Student 2,533 Points

im not understand what is wrong

i asked to do something specifically that I think i actually did,please tell me whats wrong.

strings.py
name = "yuval churi"
subject = "Treehouse loves {}"
str(Treehouse loves.format(name))

1 Answer

Mujibur Rahman
Mujibur Rahman
1,658 Points

Python already knows that everything in between "" is a string so no need to try and change your variables to strings, your 3rd line has syntax errors, you should do the task like this:

name = "yuval churi"
subject = "Treehouse loves {}".format(name)