Python provides the operator
is not: it is more natural to use
c is not a than
not c is a.
>>> a = 8 >>> b = a >>> b is a True >>> b /= 2 >>> b is not a True
is not test object identity: don't confuse them with
!= which test object equality.