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 PointsI can't get pass this challenge! Please help!
I'm trying to return admitted as True if age is >= 13. I seem to be having problems answering this challenge. :C
admitted = None
age = 24
if age >= 13:
admitted is None
2 Answers
Oszkár Fehér
Treehouse Project Revieweradmited is already defined as None. after the if statement you set the admitted to True
Oszkár Fehér
Treehouse Project ReviewerYou are very close just the admitted it's already setted to None, you need to set it True and with an = sign not 'is', this keyword it's used other things what you will learn a little bit later. i hope it helps
Russell Alson
Courses Plus Student 1,297 PointsHuff I'm sorry. I'm puzzled.
Here are the instructions from the challenge:
"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 or more."
So I make "admitted = None" after the if statement?
Russell Alson
Courses Plus Student 1,297 PointsRussell Alson
Courses Plus Student 1,297 PointsOMG THANK YOU THANK YOU THANK YOU!!