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 trialBERNARD OWUSU
314 PointsI can't get pass question 2
I can't get pass the second question please help
days = years*365
2 Answers
john larson
16,594 PointsAs 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
BERNARD OWUSU
314 PointsI did thesame thing and it keeps saying task one is no longer passing so am kinda confused....
nicole lumpkin
Courses Plus Student 5,328 Pointsnicole lumpkin
Courses Plus Student 5,328 PointsHi 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.