Q:

Make Fix Size of Hex Number Python

I want make my hex number have 2 bytes size.  How I can do it?  Example,if in C we can make %02f.  How I make it in Python2.7? 
Thankyou

A:

I try to use like this : "{0:03x}".format(number) and works

