python hex to bytes string

Solutions on MaxInterview for python hex to bytes string by the best coders in the world

showing results for - "python hex to bytes string"
Melvin
31 Jul 2016
1hexadecimal_string = "AB"
2byte_array = bytearray.fromhex(hexadecimal_string)
3print(byte_array)