codeGK
Code it ALL
Identity Operators in Python - CodeGK

♦ Identity Operators in Python

♣ Example5: Identity Operators in Python

Identity Operators in Python are used to check whether a one or more variables share the same memory location, that is same value is assigned to multiple variables.
Table Info
,,,
Operator@Working
is@returns true if both variables share the same memory-location(and also the value, ofcourse)
is not@returns true if both variables do not share the same memory-location(but may possibly have same value)
Example
Input:
Output: