Welcome to the Treehouse Community
Looking to learn something new?
traolach trewhellaCourses Plus Student 835 Points
I DID THIS RIGHT STILL DIDINT WORK ANSWERS
CORRECT ME IF IM WRONG
admitted = None if age >= 13: admitted = True; else: admitted = False;
Fable Turas9,405 Points
There are 3 things that I see here.
The first 2 are minor things that strictly speaking won't effect your outcome, but are important to note when writing good Python.
The first: Python doesn't use semi-colons to close out lines.
The second: You do not need an 'else' statement to fulfill the request of the challenge since you already have a value for 'admitted' that is Falsey, so you only need to change it to True when the True condition is met. If the condition isn't met it will stay set to the Falsey value and 'admitted' will evaluate to False in any subsequent condition without you writing the extra lines to set an explicit 'else'.
The third thing I see is most likely the reason your code is not passing though. Python is a white space based language. Your tabs are important. If you over or under tab, your code will break.