python num padding code example Example: string format zero padded int python i = 69 s = f'{i:03}' # for Python >= 3.6, zero padding to have 3 digits