Identity Operators


Source Code : 1

number_1 	=int(input("Enter Number 1 : "))
number_2 	=int(input("Enter Number 2 : "))

if number_1 is number_2 :
    print("The two value are same")
else:
    print("The two value are not same ");
To download raw file Click Here

Output : 1

Enter Number 1 : 8
Enter Number 2 : 9
The two value are same

Source Code : 2

number_1 	=int(input("Enter Number 1 : "))
number_2 	=int(input("Enter Number 2 : "))

if number_1 is not number_2 :
    print("The two value are not same")
else:
    print("The two value are  same ");
To download raw file Click Here

Output : 2

Enter Number 1 : 8
Enter Number 2 : 9
The two value are not same