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 (Retired) Things That Count Things That Count

Challenge on things that count

Where am I going wrong?

days_alive.py
age = 12
days = 12*52*7
summary = (" days + "I am {} days old!" )
C H
C H
6,587 Points

Your 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)

4 Answers

Logan R
Logan R
22,989 Points

You'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.

Thanks

Logan R
Logan R
22,989 Points

No problem! If you have any other questions or ever need anything clarified, feel free to ask :)

OK

Will do