Returns the numeric string left filled with zeros in a string of specified length.
str. zfill(width)
- width
- Required. Width of the padding field.
str
#TODO
A sign prefix is handled correctly. The original string is returned if width is less than or equal to len(str).
>>> '350'.zfill(1)
'350'
>>> '350'.zfill(2)
'350'
>>> '350'.zfill(3)
'350'
>>> '350'.zfill(4)
'0350'
>>> '350'.zfill(10)
'0000000350'
>>> '350'.zfill(20)
'00000000000000000350'
>>> '-350'.zfill(5)
'-0350'#TODO