zeros padding for python code example
Example 1: python pad left
numStr = "5"
numStr = numStr.zfill(4)
Example 2: string format zero padded int python
i = 69
s = f'{i:03}' # for Python >= 3.6, zero padding to have 3 digits
numStr = "5"
numStr = numStr.zfill(4)
i = 69
s = f'{i:03}' # for Python >= 3.6, zero padding to have 3 digits