I want to convert the input of x into binary ........ so how to connect x input into that code

i want to convert the input of x into binary … so how to connect x input into that code

I have no idea what you want to achieve, but you need to pass in x as a string:
binary = bin(int(binascii.hexlify(str(x)), 16))

2 Likes

thnx… thats exactly wat i needed