Answers for "boolean operators"

1

python boolean operators

>>> # The not operator is the opposite of it
>>> not True
False
>>> not False
True
>>> # The and operator is True only if both are are true
>>> True and True
True
>>> False and True
False
>>> False and False
False
>>> # The or operator is True if either of them are true
>>> True or True
True
>>> False or True
True
>>> False or False
False
Posted by: Guest on June-08-2020
0

boolean operators

Operation   Symbol       Example
_________________________________________________
AND           &&          A && B
OR            ||          A || B
NOT           !           !A
Posted by: Guest on June-18-2021

Browse Popular Code Answers by Language