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

Joel holsinger
Joel holsinger
2,345 Points

"It looks like Task 1 is no longer passing." Can't figure out why I am receiving this error message on the most basic

Very basic code challenge. Receiving error message "It looks like Task 1 is no longer passing." on task 2 of the code challenge. Checked over fifty times to see if I made a typo haha. Where did I make a mistake?

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

1 Answer

Daniel L.
Daniel L.
10,837 Points

I just checked your code on the challenge, it's just two quick things.

  1. Don't set the age variable, if you do it tells you not to because 'they' will do that for you
  2. Your If statement should be >= not just >

After I changed those things it passed :)

admitted = None
if age >= 13:
    admitted = True
else: 
    admitted = False
Joel holsinger
Joel holsinger
2,345 Points

Wow im dumb... haha thanks