“not in” belongs to which type of operator in python?
“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).
e.g.,
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.
Subscribe
Login
Please login to comment
0 Discussion