I want to know how can I convert an integer into hex format \x
Ffor example:
input = 62
---conversion---
output = \x3E
when I do a simple hex(int) i get 0x3e and that is ok, but the thing is, I have a bytearray which looks like this:
b'\x14\xFF\x81\x83\x06\x08\x00\x0F\x00'
and I want to append the he value of int to it, so it looks like this:
b'\x14\xFF\x81\x83\x06\x08\x00\x0F\x00\x3E'
I've tried to convert it to byte and append it afterwards but I get a result like:
b'\x14\xFF\x81\x83\x06\x08\x00\x0F\x00>'