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 can't get pass question 2

I can't get pass the second question please help

age.py
days = years*365
nicole lumpkin
nicole lumpkin
Courses Plus Student 5,328 Points

Hi Bernard! Your answer to the the second question is correct. Just make sure you are building off of the first question/line of code. So in your editor you should have two lines of code at this point.

years = 32
days = years * 365

2 Answers

As long as you didn't erase task one, yours should pass. here's my task one and task two, it passed just fine. Just be careful not to erase previous tasks. If you got to task 3, and it said task one is no longer passing, that is misleading. Your problem would be with task three.

# create a variable named years. Assign years to the number of years old you are
years = 1000
# multiply the number years by the number of days in a year
# and assign it to the variable days
days = years*365

I did thesame thing and it keeps saying task one is no longer passing so am kinda confused....