examerioLogin
← Backend PythonQuestion 6 of 49

What’s the difference between is and == in Python?

📘 Explanation

is checks whether two names point to the exact same object in memory, while == checks whether their values are equal. The other options reverse this definition, invent a type-based rule that doesn't exist, or wrongly claim both operators do the same thing.

Related questions

← PreviousNo login needed