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

Jerry Mills
Jerry Mills
761 Points

conditions.py not getting it?

admitted= none age = 15 if Not age > 13: print(admitted)

conditions.py
admitted = None
age = 15
    if not age < 13: 
        print(admitted)

1 Answer

nakalkucing
nakalkucing
12,964 Points

First: What error are you getting? After that I would look at my indents if I were you. Hope this helps, Kucing.

nakalkucing
nakalkucing
12,964 Points

The code challenge asks you to: I'm going to create a variable named age. I need you to make an if condition that sets admitted to True if age is 13 or more. You didn't make a variable that sets admitted to True, but rather made a variable that will print admitted if age is greater than 13. All the best, Kucing