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 Python Basics (2015) Logic in Python Conditional Value

what is the mistake here?

it says task 1 not working

conditions.py
 admitted = None
    if age > 13 :
           admitted = bool(1)
    else :
           admitted = bool(0)
nakalkucing
nakalkucing
12,964 Points

I 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

2 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Shubham;

Check your indentation and the challenge is to check if age is greater than or equal to thirteen.

Ken

Dan Garrison
Dan Garrison
22,457 Points

It'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