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/ Explanation:

Enter First Number : 7

Enter Second Number : 6

These are Different Number

>>> 

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

Enter First Number : 4

Enter Second Number : 4

Both are same Number

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad