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

Heather Gilchrist
Heather Gilchrist
4,691 Points

Why doesnt 'admitted' equal True?

I'm really not sure what I am doing wrong here. I keep getting stuck on minor technicalities like this.

conditions.py
admitted = None
age = 27
if age <= 13:
  admitted = True

2 Answers

Heather Gilchrist
Heather Gilchrist
4,691 Points

I was able to solve it by changing

if age <= 13:

to

if age >= 13:

I totally missed that I put the wrong symbol there.

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

this is the answer you didnt need to make a variable named age cause the instructions say that they will make it. also it appears you have your < in the wrong direction hope this helps.