Identity Operators in python, are used to find or check the value of a class or type of class.
‘is‘ – gives True if the type of the value in the right operand
# let's put boolean value True in x
x = True
# now checking condition for True
if x is True:
print(x)
‘is not’ – gives True for checking condition False – using same example
# let's put boolean value True in x
x = True
# now, NOT checking condition for True
# or checking for False
if x is not False:
print(x)