Question 41

Which out of the following is considered as a membership operator in Python?

  1. AIn
  2. BOr
  3. CNot
  4. DIs
Show answerHide answer

Correct answer: (A) In

Explanation

Python's membership operators are 'in' and 'not in'. 'is' is an identity operator, and 'or'/'not' are logical operators.

From DSSSB TGT Computer Science Practice Set 3

This is question 41 of DSSSB TGT Computer Science Practice Set 3. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.