Test Index

Python Revision Tour Get it on Google PlayDownload on the App Store CBSE Board Videos

© examsnet.com
Question : 96 of 102
Marks: +1, -0
Which of the following is an example of identity operators of Python ?
[CBSE 2023 Compartment]
Solution:  
Concept:
Identity operators is and is not check whether two names refer to the same object in memory.
Explanation:
in and not in are membership operators (they test whether a value is present in a sequence). on is not a Python operator. So is is the identity operator.
Answer:
Option A (is)
© examsnet.com
Advertisements
Go to Question: