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

when I do the challenge tasks I frequently get the error "Oops! It looks like Task 1 is no longer passing."

why do the challenge tasks keep dropping out with the rror message " Oops! It looks like Task 1 is no longer passing."

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

1 Answer

Hey Mike,

regarding your question. The Treehouse app is not always 100%. Sometimes it throws different errors that don't make much sense. Sometimes it even allows you to move forward from a task without having the correct code, and that could lead to the 'task 1 no longer passsing' error in the next section.

In your code for this specific task for example, you didn't have to change 'admitted' to True outside of the 'if' block. What I'm thinking happened here is that you changed it in the first task, and the app checked to see if it was set to True. And on task 2, it tried checking for False and got an error. Anyway, here is how your code should look like:

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

I put my code the same way as this and i still got the task no longer working error.