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

Embed on website

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