Mega Code Archive

 
Categories / Python Tutorial / String
 

A minus sign (-) left-aligns the value

from math  import pi  print '%-10.2f' % pi