how to add zeros in front of a number in python code example Example: how to append leading zeros in python str.zfill(width)