def es_negativo(): num = int(input("Ingresa un número: ")) return num < 0 if es_negativo(): print("El número es negativo.") else: print("El número no es negativo.")
To embed this program on your website, copy the following code and paste it into your website's HTML: