String formatting : Output Format : Development PYTHON examples


PYTHON examples » Development » Output Format »

 

String formatting


String formatting: Right justify and Left justify



integerValue = 4237

print "Right justify integer (%8d)" % integerValue
print "Left justify integer  (%-8d)n" % integerValue

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo Development
» Output Format