Computer Science, asked by uddhav29, 10 months ago

what is the use membership operators in python ?​

Answers

Answered by Ruksar47
15

Answer:

A Membership Operator in Python can be defined as being an operator that is used to validate the membership of a value. This operator is used to test memberships in variables such as strings, integers as well as tuples. Membership Operators as a whole contain a number of different operators

Answered by Nivedita260207
8

Answer:

Membership operators play an important role in controlling the working of a loop. There are two membership operator i.e in and not in.

The ‘in’ operator:It is used to check if a given value exist in the sequence or not.It evaluates to true if it finds a value in the  specified sequence else it returns false.

Explanation:

Similar questions