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

Steven Reich
Steven Reich
395 Points

python challenge code, how many days old years = 60 60 * 365 = days

tried several different things, needless to say new to python, so far like it though. please help?

jag
jag
18,266 Points

Link challenge.

Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

Not sure exactly what your question is regarding? Please link directly from challenges/quizzes by clicking the Get Help button. Or, for know, paste the link to the challenge in a comment here with a bit more of an explanation of what you have tried and where you are stuck. :dizzy:

2 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,423 Points

The python code in the question title has improper syntax.

The assignment to years is correct:

years = 60

The assignment to days needs to be flipped:

days = 60 * 365

# or

days = years * 365