How to convert decimal to hex in the following format (at least two digits, zero-padded, without an 0x prefix)?
Input: 255 Output:ff
255
ff
Another solution is:
>>> "".join(list(hex(255))[2:]) 'ff'
Probably an archaic answer, but functional.