Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert 1 digit to 2 digit python

number = 10
print(number) #Output: 10
zero_filled_number = str(number).zfill(3)
print(zero_filled_number) #Output: "010"
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #convert #digit #digit #python
ADD COMMENT
Topic
Name
7+7 =