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 trialAlexander Cuadrado
325 PointsWhy isn't my string working?
After looking at the video a couple of times and adding the same string information to an actual python shell, I don't know what on earth is wrong. Can someone tell me what I'm doing incorrectly or at least point me in the right direction.
name = "Alex"
subject = "Treehouse loves {}"
subject.format{name}
1 Answer
Christopher Shaw
Python Web Development Techdegree Graduate 58,248 PointsYou are using the wrong braces: subject.format(name) or in one line subject = "Treehouse loves {}".format(name)
Alexander Cuadrado
325 PointsAlexander Cuadrado
325 PointsFyi his is one of the first practice items in the beginners course.