- Published on
Identity Operators in python
- Authors
- Name
- Aswin Barath
- @AswinBarath2
Identity operators are used to checking whether the objects are the same or not.
Fact: In python, all data types are implemented as an object.
is
operator
Output:
True
False
True
is not
operator
Output:
True
False
True