With the following script:
data = "000102030405060708090a0b0c0d0e0f"
data = bytes(bytearray.fromhex(data))
print(data)
I get:
b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f'
What I would like to get:
b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f'
I am coding in Python 3.x, and I just can't figure this out.