Python Python Basics Logic in Python Conditional Value

Michael Baker
Michael Baker
496 Points

How do I set admitted to True?

I don't understand how to set admitted = None to True if there is no actual age value.

Right now I have:

if age > 13:

But as there is no actual age defined, I don't see a way to set admitted = None to True.

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

1 Answer

Logan R
Logan R
22,528 Points

Hey! Age is defined behind the scenes when it's graded. The reason your code doesn't pass is because it should be age >= 13.