“not in” belongs to the membership operator in python.
Membership operator have two operators “in” and “not in”.
They are used to test whether a value or variable is found in a sequence (string, list, tuple, set and dictionary).
x="Python language has great libraries." print("Python" not in x) print("hello" not in x)
This is all about “not in” operator in python.