IS¶
Import packages
Checking if two variables point to the same object in memory can be done using the is operator. This is different from the == operator, which checks for value equality. The is operator checks for identity, meaning it checks if both operands refer to the same object in memory.
Define a and b
a and b are same object in memory?
c and b have equal values?
c and b are same object in memory?
c and d have equal values?
c and d are same object in memory?
Define x and y
x and y have equal values?
x and y are same object in memory?
x and y have equal values?
x and y are same object in memory?
Change y