identity operator in python | explain with example and practical|

Опубликовано: 11 Март 2026
на канале: codestudyindian
13
2

Identity operators are used to compare the objects, not if they are equal, but if they are actually the same object, with the same memory location:
Types of identity operator:
1. is
2. is not
is: it gives true if variables are the same object means share same memory location.
is not: it gives true if variables are not the same object means not share the memory location.

please like, share and subscribe my channel ‪@codestudyindian13114‬

#identity #identity operator