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 trialSteve Mohimani
879 PointsTask 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?
age = 27
days = 9828
estimate = round(days)
summary = "I am {} days old!".function(estimate)
2 Answers
boog690
8,987 PointsIn 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
10,706 PointsYou should write is as: summary = "I am {} days old!".format(estimate)