print("ingrese un número entero positivo")
he=int(input())
print("el número ingresado es",he, "y en binario es igual a",hex(he))

Embed on website

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