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

sarwesh gajbhiye
sarwesh gajbhiye
387 Points

help me with this

please tell me what i am doing wrong

conditions.py
admitted = None
age = 13
if age > 12:
        admitted = True
else:
        admitted = False

3 Answers

Hi sarwesh gajbhiye.

admitted = None

if age > 12:
        admitted = True
else:
        admitted = False

You have to follow the instructions exactly as written. And the task says that the variable age will be created for you so you don't need to set any.

Hope this helped.

I think you put quotes when declaring admitted like admitted="none". then you will be good.

sarwesh gajbhiye - It appears as though you are not meant to create/set an age variable. The Challenge already sets one for you in the background, so all you would need to do is remove the age = 13 and compare its value like you have done.