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 trialNoel Guerra
940 PointsPython Basics: Using .format
name="noel" subject="Treehouse loves{}" subject.format(name) shouldn't this come out as Treehouse loves noel?
name="noel"
subject= "Treehouse loves {}"
subject.format(name)
1 Answer
Idan shami
13,251 PointsHi! the challenge won't take your answer because you didn't need to write this line:
subject.format(name)
the format method needs to go in the subject, like this:
name="noel"
subject= "Treehouse loves {}".format(name)
sorry for my bad English (: I hope you understand it.
Noel Guerra
940 PointsNoel Guerra
940 Pointsooooh, ok got it thanks!