For any k-digit integer i, the goal is to produce an m-digit string where the first n digits, where n=m-k are zeros, say. Using python would be helpful.
For example, given m=5 and i=324, how to produce "00324"?
EDIT:
The zfill
function pads the integer with zeros. Is there any more general function that pads the integer with an arbitrary integer/character?