Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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