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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Miguel Richardson](https://secure.gravatar.com/avatar/09340ed85af615c116fe451fa7a33993?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Miguel Richardson
377 PointsI asked about If and else, but the else is not working even WITH the colon on else. I don't know what I am doing wrong.
I am on the second task for this, and it is not letting me pass. I don't understand why this is happening. Please help.
admitted = None
age = 13
if age <= 13:
admitted = True
else:
admitted = False
2 Answers
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsYou did a little too much.
The challenge said "I'm going to create a variable named age." It only wanted you to create the code that tests it.
But if you create a variable named age yourself, it prevents the value that the challenge supplies during testing from being used.
The challenge also says, "I need you to make an if condition that sets admitted to True if age is 13 or more.", but your test checks if age is 13 or less.
I'll bet you can do it now without an explicit spoiler.
![Reyam Marcos](https://secure.gravatar.com/avatar/4fe7d3164dd7a28ee0fa5c0066617c16?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Reyam Marcos
Courses Plus Student 10,367 Pointsin this challenge you dont have to create a variable age, since the task says that he is the one whose going to create it, and the correct operator for greater than or equal to is >= , <= is less than or equal to
admitted = None
if age >= 13:
admitted = True
else:
admitted = False
hope it helps