Python Python Basics (2015) Logic in Python Conditional Value

Kelvin Brooks
Kelvin Brooks
1,488 Points

What exactly is wrong with setting admitted to True if age > 13? I don't understand what I'm doing right or wrong.

Conditional Value objective 1. There was a question similar to this but even the answer given does not solve the problem according to the check work button. So I tried to achieve similar answers to what sounds like should be the right answer using else this time. Probably my 14th time trying to solve this.

conditions.py
admitted = None
if age < 13:
    admitted = False
    else:
        admitted = True

1 Answer

Fix your indentation then this will pass.

Kelvin Brooks
Kelvin Brooks
1,488 Points

Couldn't believe my eyes, all that and just cause my else was in the wrong place.... so salty right now.