sponsor

sponsor

Slider

Recent Tube

Business

Technology

Life & style

Games

Sports

Fashion

» » Identity Operators

Identity Operators

Identity OperatorDescription
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

«
Next
Newer Post
»
Previous
Older Post

No comments:

Leave a Reply