how to pad a number with leading zeros in python code example Example: how to append leading zeros in python str.zfill(width)