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

jordan germann
PLUS
jordan germann
Courses Plus Student 547 Points

challenge task 1 of 2

I am stuck on this one I cant get it I am putting

age = 13
if age > 12:

and it keeps coming up wrong. what am I doing wrong?

conditions.py
admitted = None
if age > 12:

2 Answers

Here are the task instructions.

I need you to make an if condition that sets admitted to True if age is 13 or more.

You have set the condition, but you haven't defined what to do when the condition is met. Define what to do if age is greater than 12 (in this case, set admitted to True), and you should be good.

admitted = None
if age > 12:
   #your code here