Format ints into string of hex
Just for completeness, using the modern .format()
syntax:
>>> numbers = [1, 15, 255]
>>> ''.join('{:02X}'.format(a) for a in numbers)
'010FFF'
''.join('%02x'%i for i in input)
Just for completeness, using the modern .format()
syntax:
>>> numbers = [1, 15, 255]
>>> ''.join('{:02X}'.format(a) for a in numbers)
'010FFF'
''.join('%02x'%i for i in input)