One way to determine if one value does not equal another is to use the != comparator, but what if you’re not comparing two values – how can you determine …
The operator ! changes the Boolean value of a variable, expression or returned function’s value to the other side.
This can be quite handy when determining if the value of something is false (or not true).
The equivalent in Python is using the operator not.