Answers for "How to show a 1 digit integer as 2 digits pythn"

0

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"
Posted by: Guest on November-17-2020

Code answers related to "How to show a 1 digit integer as 2 digits pythn"

Python Answers by Framework

Browse Popular Code Answers by Language