Quiz Complete, well Done!
The
operator returns True if at least one statement is true in Python.
What is the result of the expression 'True and True and False'?
The order of evaluation for logical operators in Python is not,
, or.
Logical operators in Python are used to perform
operations.
AND
What is the result of the expression 'True or False'?
The
operator returns True if both operands are True.
What is the result of the expression 'True and (False or True)'?
What is the result of the expression 'True xor False' in Python?
What is the result of the expression 'not False'?
Logical Operators
The 'not' operator has the
precedence.
Which of the following is not a logical operator in Python?
Which of the following is not a logical operator in Python?
What is the result of the expression 'not True'?
NOT
What is the result of the expression 'True and False'?
The
operator returns the opposite result in Python.
Which of the following is NOT a logical operator in Python?