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 trialDaniel Carr
551 Pointsanswer is correct. an option for "get answer" would help on exercises and tests, especially tests
my answer is correct the error says there was a problem with step one which has not changed since step one said answer is correct. answer is correct. an option for "get answer" would help on exercises and tests, especially tests because I end up just clicking to move on when I don't know the answer.
years = 28
days = (years x 365)
2 Answers
Steven Parker
231,271 PointsThat error message can be misleading, but it helps to know that any syntax error will invalidate the entire program and cause the previous task tests to fail.
In this case, the syntax error is caused by attempting to use the letter "x" instead of an asterisk (*) as the multiplication operator.
Also, while it doesn't hurt, it's not necessary to enclose your calculation in parentheses.
Daniel Carr
551 Pointsgreat thanks! I started too many classes and cant seem to get back to where I was in this course even on my tracks.. hopefully I'll fix that next lol