Python Kimlik Operatörleri
Python Kimlik Operatörleri
Kimlik operatörleri, nesneleri eşit olup olmadıklarını değil, aslında aynı nesneyse ve aynı bellek konumuna sahipse karşılaştırmak için kullanılır:
Operator | Description | Example | Try it |
---|---|---|---|
is | Returns true if both variables are the same object | x is y | |
is not | Returns true if both variables are not the same object | x is not y |