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 Python Basics (Retired) Things That Count Things That Count

How do I finish Task 3 on Things That Count > Things That Count Code Challenge?

I'm stuck on this question. Could someone please explain to me how to do it? What am I doing wrong in the code?

days_alive.py
age = 14
days = age * 52 * 7
estimate = round(days)
summary = "I am " + estimate + "days old!"

2 Answers

Mikael Enarsson
Mikael Enarsson
7,056 Points

You have an implicit conversion (from int to a string), which isn't allowed in python. You could solve it by making an explicit conversion using str(), although I think that using .format() would be cleaner.

I hope this helps ^^ Good luck!!

Ernest Rodriguez
Ernest Rodriguez
17,643 Points
summary = "I am {} days old".format(estimate)