Python Python Basics (2015) Logic in Python Conditional Value

I'm going to create a variable named age. I need you to make an if condition that sets admitted to True if age is 13

What needs to be done
admitted = None 
age= []   
    if age >= 13:

1 Answer

Byron Farrow
Byron Farrow
13,264 Points

In the body of your if statement (i.e. under "if age >= 13:" and suitably indented) add a statement that reassigns the admitted variable to True.