Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print int in string with zero padding

n = '4'
print(n.zfill(3))
# 004
 
PREVIOUS NEXT
Tagged: #python #print #int #string #padding
ADD COMMENT
Topic
Name
6+9 =