Learn
The boolean operator not
returns True
for false statements and False
for true statements.
For example:
not False
will evaluate toTrue
, whilenot 41 > 40
will returnFalse
.
Instructions
1.
Let’s get some practice with not
.
- Set
bool_one
equal to the result ofnot True - Set
bool_two
equal to the result ofnot 3 ** 4 < 4 ** 3 - Set
bool_three
equal to the result ofnot 10 % 3 <= 10 % 2 - Set
bool_four
equal to the result ofnot 3 ** 2 + 4 ** 2 != 5 ** 2 - Set
bool_five
equal to the result ofnot not False
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.