#!/c/Python36/python 

# integer numbers with minimum width
print("{1:8d}".format(12,34),"{1:8d}".format(12,34))

# width doesn't work for numbers longer than padding
print("{:2d}".format(1234))

# padding for float numbers
print("{:8.6f}".format(12.2346))

# integer numbers with minimum width filled with zeros
print("{:05d}".format(12))

# padding for float numbers filled with zeros
print("{:08.3f}".format(12.2346))


# integer numbers with minimum width

a=[1,11,111,1111,11111]
for i in a:
    print("{:6d}".format(i),i)

for i in a[::-1]:
    print("{:6d}".format(i),i)

7e7fce0b3875418b651fbf2e33f62d83353550a8
<mask token>

print('{1:8d}'.format(12, 34), '{1:8d}'.format(12, 34))
print('{:2d}'.format(1234))
print('{:8.6f}'.format(12.2346))
print('{:05d}'.format(12))
print('{:08.3f}'.format(12.2346))
<mask token>
for i in a:
    print('{:6d}'.format(i), i)
for i in a[::-1]:
    print('{:6d}'.format(i), i)

print('{1:8d}'.format(12, 34), '{1:8d}'.format(12, 34))
print('{:2d}'.format(1234))
print('{:8.6f}'.format(12.2346))
print('{:05d}'.format(12))
print('{:08.3f}'.format(12.2346))
a = [1, 11, 111, 1111, 11111]
for i in a:
    print('{:6d}'.format(i), i)
for i in a[::-1]:
    print('{:6d}'.format(i), i)

#!/c/Python36/python 

# integer numbers with minimum width
print("{1:8d}".format(12,34),"{1:8d}".format(12,34))

# width doesn't work for numbers longer than padding
print("{:2d}".format(1234))

# padding for float numbers
print("{:8.6f}".format(12.2346))

# integer numbers with minimum width filled with zeros
print("{:05d}".format(12))

# padding for float numbers filled with zeros
print("{:08.3f}".format(12.2346))


# integer numbers with minimum width

a=[1,11,111,1111,11111]
for i in a:
    print("{:6d}".format(i),i)

for i in a[::-1]:
    print("{:6d}".format(i),i)
