How would I get a whole number to fill 0's to a fixed width in python 3.2 utilizing the format attribute?
a = 1
I want '001', but it gives '1'.
In python 2.x, this can be done using
print "%03d" % number.
I also checked the documentation of python3, but I wasn't able to this.
For documentation, click on this link