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

Task 1 not passing after rest of code written

After I attach the rest of the code it tells my task one stopped functioning... anybody else run into similar issues?

days_alive.py
age = 27
days = 9828
estimate = round(days)
summary = "I am {} days old!".function(estimate)

2 Answers

boog690
boog690
8,987 Points

In your last statement, you don't want to use a function method. I think you meant to use the format method.

Also, the task is meant to have you practice using arithmetic in Python to compute a number instead of you doing it by hand. Specifically, I want to point out the days declaration should be:

days = 52 * 7 * age

Instead of doing work, let Python do work for you!

Andrey Starovoytov
Andrey Starovoytov
10,706 Points

You should write is as: summary = "I am {} days old!".format(estimate)