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 trialZachary Kaufman
1,463 PointsTask 1 not passing?
I did task one (Lines 1-4) and when I hit check work it says I did it correctly. But when I go to step two and type in else admitted = False
I get an error saying step one didn't pass. How do I fix this?
admitted = None
age = 15
if age > 13:
admitted = True
else
admitted = False
2 Answers
Kourosh Raeen
23,733 PointsYou shouldn't set the variable age, so delete that line. You should also check if age is greater or equal to 13. Also you need a colon after else.
Zachary Kaufman
1,463 PointsThanks!