I know that to pad a string you do something like:
>>> n = '6'
>>> print n.zfill(3)
>>> '006
and a number:
>>> n = 6
>>> print '%03d' % n
>>> 006
>>> print "{0:03d}".format(6) # python >= 2.6
>>> 006
>>> print("{0:03d}".format(6)) # python 3
>>> 006
My question is: Is there a way to undo/un/de-pad a string and number?