Example of comparision operator is followiing:
a=20
b=20
if(a is b):
print("A and B have same ID")
else:
print("A and B have different id")
b=30
if(a is b):
print("A and B have same ID")
else:
print("A and B have different ID")
if(a is not b):
print("A and B have different ID")
else:
print("A and B have same id")
Sur cette page du site, vous pouvez voir la vidéo en ligne Identity operator in python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur PyPro Learning 07 juillet 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 31 fois et il a aimé 2 téléspectateurs. Bon visionnage!