is vs == (Python)
== checks whether two values are equal, while is checks whether two variables point to the exact same object in memory. They are not interchangeable.
== checks whether two values are equal, while is checks whether two variables point to the exact same object in memory. They are not interchangeable.