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

Fatimah Ghazal
Fatimah Ghazal
1,848 Points

seems to have a little trouble

Bummer! admitted is not True

conditions.py
admitted = None
if age >= 13:
    admitted is None

I just checked "is" in place of '=', it did not pass

1 Answer

You are very close.

# you have...
if age >= 13:
    admitted is None # <-- the challenge asks you to make admitted True if age is 13 or older
# you still have it set to None
# I'm going to check if "is" is a keyword you can use here
# but I used = and it passed

admitted = None
if age >= 13:
    admitted = True
else:
    admitted = False