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

Onique Mcfarlane
Onique Mcfarlane
4,708 Points

entered else: admitted = False to the task 1 statement and problem still is still wrong

got task one right

entered for part two

else: admitted = Fasle

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

1 Answer

You are doing great on this!

:point_right: However, it's very important to keep in mind that Python is picky about indentation.

Indentation is the spacing used before a line of code. Apparently you are using too much for the last two lines of code.

After you fix that (the indentation), you should get another error in the code challenge because it doesn't expect you to define your own age variable. Remove line 2 after fixing the indentation and you should be good to go :smile:

I hope this helps :grin:

~Alex

If this answered your question, please mark it as a best answer! Thanks!