Get answer of your all questions and doubts! ➤

Question
Is it true that if two objects return True for is operator, they will also return True for == operator?

[Computer Science Class – 11 Sumita Arora solutions. Chapter 6 – Data Handling.]

Answer

Yes, if is operator returns True (i.e. both the variables pointing to the same object), hence == operator will also return True.

Leave a Comment

Your email address will not be published. Required fields are marked *