Programming Examples

Python program to input 2 integer number and check where they are same of different number


Write a Python program which accept 2 integer number and check where they are same number or different number.

num1=int(input("Enter First Number : "))
num2=int(input("Enter Second Number : "))
if num1==num2:
    print("Both are same Number")
else:
    print("These are Different Number")
Output

Enter First Number : 7

Enter Second Number : 6

These are Different Number

>>> 

======================== 

Enter First Number : 4

Enter Second Number : 4

Both are same Number

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad