def check_odd_even(num):
    if num % 2 == 0:
        print(f"{num} is an even number.")
    else:
        print(f"{num} is an odd number.")


number = int(input("Enter a number: "))
check_odd_even(number)

Embed on website

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