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

Russell Alson
PLUS
Russell Alson
Courses Plus Student 1,297 Points

I can't get pass this challenge! Please help!

I'm trying to return admitted as True if age is >= 13. I seem to be having problems answering this challenge. :C

conditions.py
admitted = None
age = 24

if age >= 13:
    admitted is None

2 Answers

Oszkár Fehér
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Oszkár Fehér
Treehouse Project Reviewer

You are very close just the admitted it's already setted to None, you need to set it True and with an = sign not 'is', this keyword it's used other things what you will learn a little bit later. i hope it helps

Russell Alson
Russell Alson
Courses Plus Student 1,297 Points

Huff I'm sorry. I'm puzzled.

Here are the instructions from the challenge:

"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."

So I make "admitted = None" after the if statement?