Hey all:
I want to convert strings (ex. '3', '32') to strings with left padded zeroes (ex. '003', '032'), so I tried this:
string1 = '32' string2 = "%03s" % (string1)
string1.zfill(3)
-Peter -- http://mail.python.org/mailman/listinfo/python-list
Hey all:
I want to convert strings (ex. '3', '32') to strings with left padded zeroes (ex. '003', '032'), so I tried this:
string1 = '32' string2 = "%03s" % (string1)
string1.zfill(3)
-Peter -- http://mail.python.org/mailman/listinfo/python-list