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 trial

Python Python Basics (2015) Logic in Python Conditional Value

Martin Bornman
PLUS
Martin Bornman
Courses Plus Student 12,662 Points

I 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

conditions.py
admitted = None
age = 13
if age => 13:
  print (True)

i think the python course is just stuck in you

1 Answer

Hey 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
Nathan Tallack
22,160 Points

Jacob,

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?