Hi,
How do I get a hexvalued string to a format recognized for binary
calculation?
import binascii
s1 = '1C46BE3D9F6AA8 20'
s2 = '8667B5236D89CD 46'
i1 = binascii.unhexl ify(s1)
i2 = binascii.unhexl ify(s2)
x = i1 ^i2
TypeError: unsupported operand type(s) for ^: 'str' and 'str'
Many TIA
T
How do I get a hexvalued string to a format recognized for binary
calculation?
import binascii
s1 = '1C46BE3D9F6AA8 20'
s2 = '8667B5236D89CD 46'
i1 = binascii.unhexl ify(s1)
i2 = binascii.unhexl ify(s2)
x = i1 ^i2
TypeError: unsupported operand type(s) for ^: 'str' and 'str'
Many TIA
T
Comment