#program to check if the number entered is even or odd

num = int(input("Enter any number: "))

if(num == 0):
    print(num," is equal to zero(neither odd nor even)")

else:
    if(num % 2 == 0):
        print(num," is an even number")
    else:
        print(num," is a odd number.")

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: