def par_impar(n):
    if n%2==0:
        print("El numero es par")
    else:
        print("El numero es impar")

numero=int(input("Ingrese un numero: "))

par_impar(numero)

Embed on website

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