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

Josh Goodhardt
Josh Goodhardt
22,119 Points

String exercise difficulty

Hi, I have entered the following but can't see where I am going wrong... name = "Aron" subject = "Treehouse loves {}.format(name)"

the error message says something about using the brackets, which I am.

Can you help me figure this out?

strings.py
name = "Aron"
subject = "Treehouse loves {}.format(name)"

2 Answers

Your very close, but your not using .format correctly, it should be placed outside the "". Like this:

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

lol was too slow :P

Josh Goodhardt
Josh Goodhardt
22,119 Points

Thanks for your help guys!!