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 (2015) Python Data Types Age Calculation

I'm not understanding

I need to figure out exactly what it's asking of me

age.py
Years = '28'

3 Answers

Oszkár Fehér
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Oszkár Fehér
Treehouse Project Reviewer

Hi Talia

When you create an int variable like your age in this case than it should be an integer not a string if you put 28 between ' ' it makes it a string: correct ==> Years = 28 , wrong ==> Years = '28'

i hope it helps to understand

I did years = 28 and it came back wrong as well. That's why I was confused

Oszkár Fehér
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Oszkár Fehér
Treehouse Project Reviewer

please be carefull with the spelling, it's very important! when the question ask you to create a variable 'years', it happened with me also and this is the first thing what i check if it gives me an error i hope now i helped you

Omg thank you, I didn't realize it was because of capitalization