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

Kevin Jervis
Kevin Jervis
2,600 Points

Concatenated Strings

Hi Guys

Not too sure what went wrong here :o(

strings.py
name="Kevin"
status_message="Treehouse loves {}.format ("Kevin"))
Kevin Jervis
Kevin Jervis
2,600 Points

Keep getting an error message stating that task 1 is not passing

1 Answer

Hi there!

Ah so close! you're just missing the closing " on your string, so python thinks everything up to .format( is part of the string.

Good job using the format method too! :)

Kevin Jervis
Kevin Jervis
2,600 Points

Oh I see. Well spotted Jon. Thanks for your help man!