Python Programming - Tricky Questions - Discussion

Discussion Forum : Tricky Questions - General Questions (Q.No. 21)
21.
What is the purpose of the is keyword in Python?
It is used to compare values for equality.
It is used to compare object identity.
It is used to create instances of a class.
It is used to define conditional statements.
Answer: Option
Explanation:
The is keyword checks if two objects refer to the same memory location.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.