Python program to check the equality of given numbers
kw.py
print("__________________________________________")print("Program for comparison of two numbers")print("__________________________________________")a=int(input("Enter the 1st number "))b=int(input("Enter the 2nd number "))if(a<b):print(a,"is less than",b)elif(a==b):print(a,"is equal to",b)else:print(a,"is greater than",b)print("__________________________________________")
Output
kodingwindow@kw:~$ python3 kw.py
__________________________________________
Program for comparison of two numbers
__________________________________________
Enter the 1st number -10
Enter the 2nd number -50
-10 is less than -50
__________________________________________
Dear User, Thank you for visitng KodingWindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.