(PYTHON)

What happens when a programmer uses the logical operator not with a Boolean condition?

A. The result is the condition evaluates to true.
B. The result is the condition evaluates to false.
C. The result is the opposite of the condition's value.
D. The result is the same as the condition's value.

Respuesta :

Logical operators are typically used with Boolean (logical) values. When they are, they return a Boolean value. However, the && and || operators actually return the value of one of the specified operands, so if these operators are used with non-Boolean values, they may return a non-Boolean value.

Hope this helps you. 

The true statement is (c) the result is the opposite of the condition's value.

The not logical operator returns the negation of a boolean value

Take for instance:

  • Not true will result in false
  • Not false will result in true

The negation of a value is its opposite.

Hence, the true statement is (c) the result is the opposite of the condition's value.

Read more about boolean conditions at:

https://brainly.com/question/13158161

ACCESS MORE