a plus (+) means that a sign should precede both positive and negative numbers : Format : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Format »

 

a plus (+) means that a sign should precede both positive and negative numbers


print ('%+5d' % 10'n' ('%+5d' % -10)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo String
» Format