hex python tambahkan 0

>>> hex(15)[2:].zfill(2)
'0f'
Exuberant Earthworm