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 trialMichelle Mangwiro
Courses Plus Student 467 PointsChallenge on things that count
Where am I going wrong?
age = 12
days = 12*52*7
summary = (" days + "I am {} days old!" )
4 Answers
Logan R
22,989 PointsYou're close, but your syntax for the last is a tad off.
age = 12
days = age * 52 * 7
summary = "I am {} days old!".format(days)
You want to put the string first, then call .format() on the string.
Michelle Mangwiro
Courses Plus Student 467 PointsThanks
Logan R
22,989 PointsNo problem! If you have any other questions or ever need anything clarified, feel free to ask :)
Michelle Mangwiro
Courses Plus Student 467 PointsOK
Michelle Mangwiro
Courses Plus Student 467 PointsWill do
C H
6,587 PointsC H
6,587 PointsYour summary variable should like this if you're trying to say "I am ____ days old!" I suggest you re-watch the lesson.
summary = "I am {} days old!".format(days)