def mayor_de_edad():
    edad = int(input("Ingrese su edad: "))
    if edad >= 18:
        print("Es mayor de edad.")
    else:
        print("Es menor de edad.")

mayor_de_edad()

Embed on website

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