“not in” belongs to which type of operator in python?
![](https://pythonpoint.net/wp-content/uploads/2020/12/Orange-and-White-Modern-Simple-Technology-YouTube-Thumbnail-1-1024x576.jpg)
“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)
![](https://pythonpoint.net/wp-content/uploads/2020/12/Screenshot-1188-1024x395.png)
This is all about “not in” operator in python.
Subscribe
Login
Please login to comment
0 Discussion