Computer Science, asked by kharedharini, 1 day ago

What is the use of membership operators in Python?​

Answers

Answered by NAVA98
2

Answer:

Operators in python is used for logical and it is binary operator

Explanation:

Logical Operators in Python are used to perform logical operations on the values of variables. The value is either true or false. We can figure out the conditions by the result of the truth values. There are mainly three types of logical operators in python : logical AND, logical OR and logical NOT. Operators are represented by keywords or special characters.

Answered by sowmyaashwath05
0

Answer:

Membership operators are used to validate the membership of a value.

Explanation:

It tests for membership in a asequence,a string, lists, or tuples etc.

Python has two types of membership operators :-

1. "in" operator

2. "not in" operator

They are used to check if an element is present in a sequence or not.

Similar questions