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

RMZ .
RMZ .
1,002 Points

conditional value

I'm really lost to this task, I just can't figure it out what is the command of the question. Can someone help me out? Really appreciate it. Thanks!

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

1 Answer

Ben Reynolds
Ben Reynolds
35,170 Points
  1. Delete the line age = 15. The exercise will supply its own age variable when it checks your code.
  2. Your "if" statement checks if age is greater than 13, but you need to check if age is at least 13
  3. Inside the if statement, you're printing the text "admitted is True". Instead, set the admitted variable's value to True