Hi all, I have found some examples on the net but was not able to use the technique..

here is what I would like to do.

tst = 2

numOfDigits = 3

# change this to

tst2 = 002

Any help is appreciated.

Thank you.

http://www.webdotdev.com/nvd/content/view/938/99999999/1/2/

>>> print “z is (%6d)” % 175

z is ( 175)

>>> print “z is (%06d)” % 175

z is (000175)