Which two options are logical operators used to evaluate whether a condition is True or False? (Choose two.)
- in
- and
- or
- is
- is not
Explanation: In Python, logical operators are used to combine and evaluate multiple expressions to determine a final True or False Boolean result. The and operator evaluates to True only if all conditions in the expression are True, while the or operator evaluates to True if at least one condition is True. Other options provided, such as in, are categorized as membership operators, while is and is not are defined as identity operators.
Related exam: Modules 21 – 22: Checkpoint Exam: Programmability Answers (CCNP ENCOR v9)
