So, I have a list containing strings that represent hex values like:
['02', 'ff', '98', '80', '39', '31', '03']
I would like to generate a new list that contains the actual hex values like:
[0x02, 0xff, 0x98, 0x80, 0x39, 0x31, 0x03]
Is there a way to do that?
If needed I can also get acces to the actual byte stream in the form of:
b'\x02\xff\x9c\x80D1\x03'
I need this "transformation" to perform bit-a-bit boolean operations on the elements of the list