Is there any way to get hex (5)
output '0x05'
instead of '0x5'
?
For example i want to convert [255,11,132]
to hex string like 'ff0b84'
So i can slice it by 2 characters and covert to decimal again. But python doesn't put 0
before b
so i can't slice string by 2 characters!
I think you could use format to get '0x05' instead of '0x5':