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 trialRussell Alson
Courses Plus Student 1,297 PointsWhat does this instruction want me to do?
this is the result after I check my work:
Bummer! Don't set the age
variable, I'll do that for you.
I can't just delete the if statement?!
admitted = None
age = 24
if age >= 13:
admitted = True
else:
admitted = False
2 Answers
Christian Mangeng
15,970 PointsHi Russell,
the error tells you exactly what is wrong: the if/else statement is correct as it is right now, but you don't need to set an age yourself, so remove the "age = 24" line. The code is valid for all numbers for age.
Tizmiz Tizzer
1,040 PointsReread the question, he is creating the age variable. Remove the age variable and your code should work, I hope this helps!