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 trialMartin Bornman
Courses Plus Student 12,662 PointsI am stuck in the Python course,where I have to set admiited to True if age is 13 or more.Can someone help me get back ?
Python Basics if Statement
admitted = None
age = 13
if age => 13:
print (True)
1 Answer
jacobproffer
24,604 PointsHey Martin,
If you look at your current if statement, you're checking if age is equal to or greater than 13. You need to flip-flop that statement to check if age is greater than or equal to 13 (>= not =>). Finally, inside of your if statement, set admitted to True.
Check it out:
admitted = None
age = 13
if age >= 13:
admitted = True
Nathan Tallack
22,160 PointsJacob,
There are LOTS of users that are missing this nuance of the challenge instructions. Even I missed it.
Perhaps time to get a staffer to reword the challenge?
Tyler Morgan
4,521 PointsTyler Morgan
4,521 Pointsi think the python course is just stuck in you