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

Struggling With Challenge Task 2

Hi! I am having issues with Challenge Task 2 in the Conditional Value Code Challenge. Every time I run the code, I keep getting the message, "Don't set the age variable, I'll do that for you." I have looked over the If This Then That video many times and still not getting by the challenge. Maybe it could be a format issue or some missing detail. Below is the code that I have used for the challenge so far. If you have any advice to get through this challenge, I would greatly appreciate it.

admitted = None age= 13 if age >= 13: admitted = True else: admitted = False

1 Answer

Hey, he DOES NOT want you to set the age variable.

if age >= 13:
    admitted = True 
else: 
    admitted = False

Jeremiah. Thank you so much for you help. I guess I did not understand the question correctly.