A minus sign (-) left-aligns the value : Format : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Format »

 

A minus sign (-) left-aligns the value


from math import pi 

print '%-10.2f' % pi



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Format