Boolean Operators Flashcards
1
Q
To know the opposite boolean value for something:
A
The not Operation
>>> not True
False
>>> not False True
2
Q
The or Operation
A
>>> True or True
True
>>> True or False
True
>>> False or False
False
>>> False or True True
3
Q
A
4
Q
With or operand how many values do we need to be Ture to return a True?
A
Only 1
>>> True or True
True
>>> True or False
True
5
Q
Wiht the or operand what is the one time you will get a False?
A
>>> False or False
False
6
Q
The and operator is the opposite of?
A
Or operand
7
Q
For the and operator how many operands need to be true?
A
Both
>>> True and True
True
8
Q
List all False for and Operation:
A
>>> True and False
False
>>> False and False
False
>>> False and True
False