a=int(input("Ingrese un número positivo o negativo para saber su valor absoluto"))
b=abs(a)
print("El valor absoluto de", a)
print("es: ", b)

Embed on website

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