Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python fill zeros left

>>> n = '4'
>>> print(n.zfill(3))
004
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #fill #zeros #left
ADD COMMENT
Topic
Name
9+8 =