ScanSkill

not

This not operator returns ta boolean that is the reverse of the logical state of an expression.

Syntax

not A

Here,

  • A: Required. Any valid object.

Note: not does not return the evaluated argument but a Boolean instead.

Examples

>>> not True
False
>>> not False
True
>>> True and not False
True
>>> True and not True
False
>>> True or not True
True
>>> True or not False
True