python add leading zero if less than 10 code example Example: how to append leading zeros in python str.zfill(width)