What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-05 08:43:06
python convert hex to binary
my_hexdata = "1a" scale = 16 # equal to hexadecimal bin(int(my_hexdata, scale))[2:].zfill(len(my_hexdata)*4) # By changing the parameter of the zfill function we allow for any length of # hexadecimal code, which is more useful when using this ... Add solution
Best helpers
Ranking is empty