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 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz