This not
operator returns ta boolean that is the reverse of the logical state of an expression.
not A
Here,
Note: not
does not return the evaluated argument but a Boolean instead.
>>> 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