n=int(input("Ingrese un valor negativo: "))
if n<0:
    n=n*(-1)
    print(n)
else:
    print("El valor no es negativo: ")

Embed on website

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