>>> 'cele cislo {0:d}'.format(25) 
'cele cislo 25'

>>> 'cele cislo {0:20d}'.format(25)
'cele cislo                   25'

>>> 'cele cislo {0:10d}'.format(25)
'cele cislo         25'

>>> 'realne cislo {0:f}'.format(31415926.535897)
'realne cislo 31415926.535897'

>>> 'realne cislo {0:e}'.format(31415926.535897)
'realne cislo 3.141593e+07'

>>> 'realne cislo {0:5}'.format(31415926.535897)
'realne cislo 31415926.5359'

>>> 'realne cislo {0:20g}'.format(31415926.535897)  
'realne cislo          3.14159e+07'

>>> 'realne cislo {0:10.3g}'.format(31415926.535897)   
'realne cislo   3.14e+07'

>>> 'realne cislo {0:10.3f}'.format(31415926.535897)   
'realne cislo 31415926.536'

>>> 'realne cislo {0:20.3f}'.format(31415926.535897)   
'realne cislo         31415926.536'

>>> 'realne cislo {0:20,.3f}'.format(31415926.535897)
'realne cislo       31,415,926.536'

>>> 'retezec {0:s} KONEC'.format('Je tu hola veta.')
'retezec Je tu hola veta. KONEC'

>>> 'retezec {0:30s} KONEC'.format('Je tu hola veta.')
'retezec Je tu hola veta.               KONEC'
