We use identity operators to compare the memory location of two objects.
Operator | Syntax | Description |
---|---|---|
is | x is y | This returns True if both variables are the same object |
is not | x is not y | This returns True if both variables are not the same object |
Example
You are expected to comply with University policies and guidelines namely, Appropriate Use of Information Resources Policy, IT Usage Policy and Social Media Policy. Users will be personally liable for any infringement of Copyright and Licensing laws. Unless otherwise stated, all guide content is licensed by CC BY-NC 4.0.