Python Identity Operators
Python Identity Operators
အရာဝတ္တုများ တူညီလျှင်မဟုတ်ဘဲ၊ ၎င်းတို့သည် အမှန်တကယ်တူညီသော အရာဝတ္တုဖြစ်ကြောင်း တူညီသောမှတ်ဉာဏ်တည်နေရာဖြင့် နှိုင်းယှဉ်ရန် Identity operator ကိုအသုံးပြုသည်-
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 |