Dec-21-2017, 10:30 PM
I have some questions regarding this code from tutorial:
In the print statement what 1 in {1:10d} means ( if I change it with 0 it doesn't work )? Also, what "d" stands for? Dictionary maybe? I tested if code can work without it and the asnwer is positive.
1 2 3 |
table = { 'Sjoerd' : 4127 , 'Jack' : 4098 , 'Dcab' : 8637678 } for name, phone in table.items(): print ( '{0:10} ==> {1:10d}' . format (name, phone)) |