left and right padding python code example Example: python pad left numStr = "5" numStr = numStr.zfill(4)