You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
x = 3
|
|
y = 123
|
|
print("\nOriginal Number: ", x)
|
|
print("Formatted Number(left padding, width 2): "+"{:0>2d}".format(x));
|
|
print("Original Number: ", y)
|
|
print("Formatted Number(left padding, width 6): "+"{:0>6d}".format(y));
|
|
print() |