Python program to check the given number is even or odd
kw.py
print("__________________________________________")print("Program for even-odd test of a given number")print("__________________________________________")n=int(input("Enter a number "))if(n%2==0):print(n,"is EVEN number")else:print(n,"is ODD number")print("__________________________________________")
Output
kodingwindow@kw:~$ python3 kw.py
__________________________________________
Program for even-odd test of a given number
__________________________________________
Enter a number -5005
-5005 is ODD number
__________________________________________
kodingwindow@kw:~$ python3 kw.py
__________________________________________
Program for even-odd test of a given number
__________________________________________
Enter a number 5050
5050 is EVEN number
__________________________________________
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.
Dear User, We are grateful for your interest in the Kodingwindow Android app. We intend to soon make it available on the Google Play Store. Currently, you need to install apk manually. Would you like to get the app? Minimum Requirement(s): Android 10