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

I am try to type code, but it not pass. Please guide me.

when i type my code. The answer is "admitted " show that is not True. I don't unserstand.please guide me about it.Thank you.

conditions.py
admitted = None
age = 15
if age >= 13:
    print("your are old.")

2 Answers

Russell Sawyer
seal-mask
.a{fill-rule:evenodd;}techdegree
Russell Sawyer
Front End Web Development Techdegree Student 15,705 Points

All the challenge is asking is to write an if statement that sets admitted to True if age is greater than or equal to 13. You don't need to set the age variable because it's already done for you behind the scenes. The print statement isn't necessary either. You are very close though.

if age >= 13:
    admitted = True

Thank you so much. It worked.