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

Things That Count, Challenge Task4

kind of stuck on challenge task 4, I'm guessing im close but getting an error message: Oops! It looks like Task 1 is no longer passing.

My code is as follows:

age = 39 days = 39*52*7 decades = age / 10

estimate = round(decades) summary = "I am {} days old! That's about {} decades!" .format(days, string(decades))

2 Answers

days = age*52*7 You shouldn't have to enter your age manually more than once. Make use of the variable :)

Also you've not used estimate in your string for summary. Additional hint you don't actually need to tell it to be a string.

Yes you are very close. You made a mistake at string. In python, string is denoted by str

age = 24
days = age * 52 *7
decades = 24 / 10
estimate = round(decades)
summary = "I am {} days old! That's about {} decades!".format(days, str(estimate))

I hope it helps.

Regards

Karthikeyan Palaniswamy