Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add trailing zeros in python

text = "hello"
print(text.zfill(10))
Output: '00000hello'
 
PREVIOUS NEXT
Tagged: #add #trailing #zeros #python
ADD COMMENT
Topic
Name
1+1 =