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 trialshubham Sharma
1,166 Pointswhat is the mistake here?
it says task 1 not working
admitted = None
if age > 13 :
admitted = bool(1)
else :
admitted = bool(0)
2 Answers
Ken Alger
Treehouse TeacherShubham;
Check your indentation and the challenge is to check if age
is greater than or equal to thirteen.
Ken
Dan Garrison
22,457 PointsIt's the indenting. It will cause a syntax error the way it is set up right now. Also bool(1) and bool(0) work, but you could also just use True and False
nakalkucing
12,964 Pointsnakalkucing
12,964 PointsI take it task 1 is passing the challenge. In which case don't worry about it. It tells you that task 1 is no longer passing when it's not sure of what your problem is. Your problem is in your most recent bit of coding. So focus your attention there. Hope this helps, Nakal