Membership operator in Python test a sequence, such as a string, a list, or a tuple, for membership. They check whether a sequence appears in an object or not. There are two membership operators in Python. To check if any sequence is present in any object, we use in, and to check if a sequence is not present in any object, we use not in. We get the output in the form of a boolean value that is True or False.