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 trialsarwesh gajbhiye
387 Pointshelp me with this
please tell me what i am doing wrong
admitted = None
age = 13
if age > 12:
admitted = True
else:
admitted = False
3 Answers
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsHi 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.
Sangki Kim
Courses Plus Student 1,032 PointsI think you put quotes when declaring admitted like admitted="none". then you will be good.
Mike Wagner
23,559 Pointssarwesh 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.
sarwesh gajbhiye
387 Pointssarwesh gajbhiye
387 Pointsit worked thank you