python 6 digit number to 3 digits code example
Example 1: 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"
Example 2: show number as 3 digit python
f"{MyNumber:0=3d}"