By: Ulearncoding
on April 04, 2020
/
Identity Operators
| Identity Operator | Description |
| is | जब एक जैसे Object का वर्णन किया जाता है तो True return करता है | |
| is not | जब अलग-अलग Object का वर्णन किया जाता है तो True return करता है | |
'is' Identity Operator
Source Code :
a = 4
b = 5
c = 4
print(a is c)
print((a<b) is (b>a))
Output :
True
True
'is not' Identity Operator
Source Code :
a = 4
b = 5
print(a is not b)
Output :
True
Tag:
Python
Program Life's Admin
We are.., This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
No comments: