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

Dezhi Zhu
Dezhi Zhu
2,662 Points

I don't really understand the question. Admitted is None which is false itself. How could I change it into True.

zzz

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

1 Answer

You simply need to replace the word "is" with an equals sign (=). You also need to remove the age = 15 statement from your code.

admitted = None

if age >= 13:
    admitted = True
Dezhi Zhu
Dezhi Zhu
2,662 Points

Great! Thanks a lot