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

Suleiman Abdurozikov
Suleiman Abdurozikov
2,943 Points

i haven t understand the task

how should I make admitted "true"

conditions.py
admitted = None 
age=17
if age>13 :
    print(None)

1 Answer

Name:GoogleSearch orJonathan Sum
Name:GoogleSearch orJonathan Sum
5,039 Points

Let me give u a hint first.

//You need to understant that the print function is just printing a string. string and boolean are not the same.
//"True" is a string
//True is a boolean ,such as True = 1 and False = 0
//Therefore,the only problem you have is the "print(None)"
//You need to change the "print(None)" to something

//Hint

admitted = None 
current president = "obama"
if current president = "obama":
    admitted = True