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

Shayna Chambless
Shayna Chambless
7,115 Points

I don't fully understand the question. I made the variables and did everything from the videos. What am I doing wrong?

help???

strings.py
name = 'shayna'
subject = 'treehouse loves {}'.format(name)

2 Answers

David Papandrew
David Papandrew
8,386 Points

The challenge is quite picky. Use the literal string they want for the second variable with a capital "T" for "Treehouse" and your code will pass.

name = 'shayna'
subject = 'Treehouse loves {}'.format(name)
Hadi Khalili
Hadi Khalili
7,969 Points

The code is correct. Just change the small cap 't' to capital 'T' in treehouse. remember case sensitivity