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 trialRichard Zhang
Courses Plus Student 1,070 PointsHow do I set admitted to true?
The bool value of admitted is false, but when I type in not admitted. I typed in "not admitted", but its value is still not true
admitted = None
age = 16
if age >= 13:
not admitted
1 Answer
lambda
12,556 Pointsbooleans in python start with a capital letter.
my_boolean_value = True
the_sky_is_green = False
Also, it want you to assign a new value to admitted
# in your code
admitted = None
...
not admitted # admitted is still equal to None. You haven't changed it using "not".
# you want to assign a new value to variable admitted.