What is membershhip operator?
Answers
Answered by
1
Answer:
Membership Operators
Membership operators are operators used to validate the membership of a value. It test for membership in a sequence, such as strings, lists, or tuples in operator : The ‘in’ operator is used to check if a value exists in a sequence or not. Evaluates to true if it finds a variable in the specified sequence and false otherwise.
Answered by
1
Answer:
Membership operators are operators which are used to check whether a value/variable exist in a sequence like string, list, tuples, sets , dictionary or not. These operators returns either True or False. If a value/variable is found in the list , it returns True otherwise False.
Similar questions