Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKelvin Brooks
1,488 PointsWhat 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.
admitted = None
if age < 13:
admitted = False
else:
admitted = True
1 Answer
cb123
Courses Plus Student 9,858 PointsFix your indentation then this will pass.
Kelvin Brooks
1,488 PointsKelvin Brooks
1,488 PointsCouldn't believe my eyes, all that and just cause my else was in the wrong place.... so salty right now.