python integer with zero padding code example Example: python pad with zeros >>> n = '4' >>> print(n.zfill(3)) 004