Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

binary string to hex python

binary_string = input('Input Binary: ')

decimal_representation = int(binary_string, 2)
hexadecimal_string = hex(decimal_representation)

print(hexadecimal_string)
 
PREVIOUS NEXT
Tagged: #binary #string #hex #python
ADD COMMENT
Topic
Name
6+2 =