from math import piprint '%10f' % pi # Field width 10print '%10.2f' % pi # Field width 10, precision 2print '%.2f' % pi # Precision 2print '%.5s' % 'Guido van Rossum'print '%.*s' % (5, 'Guido van Rossum')