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

Can't grasp what the task is asking of me!

I get how if works but how am I setting up a condition for age if there isn't an age variable? and what does admitted with the variable of none have to do with age being <= 13?

conditions.py
admitted = None

sorry admitted with the value of none.

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

There are many services out there that require a user to be age 13 to use them. Among them, Facebook and Steam. Here it's starting out with admitted = None. It's doing that because if admitted is not explicitly set to true we don't want them to be able to use the services. So we start out assuming that the person isn't allowed to use the services.

The age variable is being generated by Treehouse. They're going to send in different values to the age variable to test your code. In fact, if you overwrite what they're sending by resetting the value of age, the challenge will fail. Give it another shot with these things in mind! :sparkles: