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

The instructions asks to create a conditional for a variable that isn't supposed to be created by me, what should I do?

The instructions says that I need to create a conditional if for a variable named age. The problem is that the variable age isn't there and I can not create it because the instructions also says that it would not be created by me but by some other. Despite of it I tried creating the variable and it worked but when I got to the other task it did not work because there is a bummer sign that tells me I should not set the variable age. I also tried to set a None value but it didn't work either. What I'm doing wrong?

conditions.py
admitted = None
age = 14 
if age > 13:
    admitted = True
else: 
    admitted = False 

1 Answer

Steven Parker
Steven Parker
231,248 Points

Don't create the variabe "age", just test it.

You're right, the challenge creates that variable in other code you will not see.

But also remember the challenge asked you to test "if age is 13 or more" but you currently only test if it is more than 13.

Oh you're right! Thanks