Python not
can be used to negate a conditional statements, for example:
>>> not True
False
>>> x = 3
>>> not(x > 2)
False
>>> not 3
False
>>> not None
True
It will just return the logical opposite of what’s in the statement. It is most frequently used in an if/else statements
if not (x > 3 and x < 8):
print('x is not greater than 3 and smaller than 8')