Which operator checks whether two names refer to the same object?
Answer & explanation
Answer: is
`is` tests object identity. `==` tests equality according to the objects’ equality behavior.
Practice equality & identity with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: is
`is` tests object identity. `==` tests equality according to the objects’ equality behavior.