What is a Pythonic way to pad a numeric string with zeroes to the left, i.e. so the numeric string has a specific length?
You could also repeat "0", prepend it to str(n) and get the rightmost width slice. Quick and dirty little expression.
str(n)
def pad_left(n, width, pad="0"): return ((pad * width) + str(n))[-width:]