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 trialKevin Donaldson
261 PointsHow does this not work
I think this code should be correct but it says the first line is not passing.
age = 48
days= 17472
summery = ("I am "{}" days old".format(days))
2 Answers
Daniel Johnstone
8,420 PointsYou only use the curly braces when they're inside a string. eg. print("I am {} days old".format(days)).
fabricio mattos
4,897 PointsYou are using the double quotes twice. In this case only needs use in the begging and the final.
summery = ("I am {} days old".format(days))
Kevin Donaldson
261 PointsKevin Donaldson
261 PointsThanks so much Daniel