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'm not sure what that task is asking for.

I did all the work up to this point and I know this task is supposed to be based on concepts in previous videos but I'm really not sure what this task is asking for. I wrote a random line of code, sort of a shot in the dark. Any pointers?

conditions.py
admitted = True 
if age >=13:

1 Answer

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

Hi there! You're really close here. First, you changed their original line. Going forward in these challenges it's important to try not to do anything the challenges don't explicitly ask for.

You know how many services like Facebook and Steam require users to be 13 years or older to use them? Well let's pretend this is for that purpose. So we're going to start with the assumption that the user is not 13 and disallow them entrance. Then if they are 13+ we let them in. So take a look at some pseudo-code and see if you can get it.

person is not admitted
if person is of age 13 or older:
      person is admitted is equal to true

Hope this helps, but let me know if you're still stuck! :sparkles:

Thanks, that was righteous