About Lesson
Identity Operators:-
identity python operators दो ऑब्जेक्ट्स के मैमोरी लोकेशन को compare करता है
Operator |
Description |
Example |
is |
यदि दोनों variable के पास एक सामान object हो तो यह true return करता है। |
x is y |
is not |
यदि दोनों variable के पास एक सामान object नहीं हो तो यह true return करता है। |
x is not y |
Identity Operators:-
identity python operators compare the memory locations of two objects
Operator |
Description |
Example |
is |
It returns true if both variables have the same object. |
x is y |
is not |
It returns true if both variables do not have the same object. |
x is not y |