0

How do i change binary to hex in phyton

I understand the changing hex to binary as maths but it is hard in phyton

6th Dec 2016, 10:24 PM
sahra
1 Odpowiedź
+ 1
It is very easy change binary to hex in python. For example: 10101011 to hex >>> hex(0b10101011) '0xab' your hex value: ab
9th Dec 2016, 8:54 PM
Constantin E.
Constantin E. - avatar