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
SEBASTIAN BUFFO
2,822 PointsTask 1 no longer passing error in: Things that Count task 4 quiz
Hi,
I am working on the last part of Things that Count quiz and when I post the final line of code for the quiz it says that task 1 is no longer passing. Below is my code. Any suggestions would be appreciated :)
age=24
days= age*52*7
decades= age/10
estimate= round(decades)
summary("I am {} days old! That's about {} decades!".format(days, str(estimate))
Stephen Bone
12,359 PointsBeat me too it :)
2 Answers
Stephen Bone
12,359 PointsYou need to assign the string "I am {} days old! That's about {} decades!".format(days, str(decades)) to the variable summary.
Your code should say:
summary = ...
Not:
summary( ...
Hope it helps!
SEBASTIAN BUFFO
2,822 PointsThanks!
SEBASTIAN BUFFO
2,822 PointsSEBASTIAN BUFFO
2,822 PointsI figured it out. Had an unnecessary ( at the beginning and forgot an = sign.