Boolean Operators Flashcards

1
Q

To know the opposite boolean value for something:

A

The not Operation

>>> not True

False

>>> not False True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The or Operation

A

>>> True or True

True

>>> True or False

True

>>> False or False

False

>>> False or True True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Wiht the or operand what is the one time you will get a False?

A

>>> False or False

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The and operator is the opposite of?

A

Or operand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

For the and operator how many operands need to be true?

A

Both

>>> True and True

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

List all False for and Operation:

A

>>> True and False

False

>>> False and False

False

>>> False and True

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly