Python Python Basics (2015) Logic in Python Conditional Value

Dolapo Sekoni
PRO
Dolapo Sekoni
Pro Student 1,431 Points

if condition

please help

conditions.py
admitted = None
age = 13
if age >= 13:
    print("Admitted = True")

1 Answer

Brendon Butler
Brendon Butler
4,233 Points

You actually don't want to print out to the console. Instead you want to change the value of the variable admitted from None to True.

Your if statement should look more like this

if age >= 13:
    admitted = True