Python Membership Operator

Membership Operator The membership operator is also a special operator and is used to check if a certain object is a member of the given collection or not i.e. it a member of the list, set or a collection of characters or not. Example: >>>lis1= [1, 2, 3] #creating a list >>>print(1 in lis1) >>>print(5 …

Python Membership Operator Read More »