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

Juan Uribe
Juan Uribe
908 Points

I am reading through the directions and they seem unclear. Do I need to change the variable admitted's value?

The directions say to create a line of code that states admitted >= 13 then its true but value for admitted is none

conditions.py
admitted = None

I think they're asking you to take advantage of the fact that the statement "age >= 13" is going to have a True or False value, and use that to assign the same value to "admitted" directly, like how "age = 1 + 1" will set age to 2.

remember, "=" sets a variable, and "==" compares for equality.

1 Answer

Steven Parker
Steven Parker
231,236 Points

The existing code sets the initial value of "admitted".

You'll do a test, and based on the result you will give "admitted" another value.