Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python string to hex

hex_string = "0xAA"
# "0x" also required

an_integer = int(hex_string, 16)
# an_integer is a decimal value

hex_value = hex(an_integer)
print(hex_value)
Source by kite.com #
 
PREVIOUS NEXT
Tagged: #python #string #hex
ADD COMMENT
Topic
Name
7+9 =