Explain not ( boolean NOT ) with an example
Question :
Explain not ( boolean NOT ) with an example
The not operator is used to reverse the logical state of its expression. Logical not returns True if the expression is false and False if the expression is true. For example
If x is True, it returns False.
If x is False, it returns True.
x=True;
not x returns False.