Mega Code Archive

 
Categories / Python Tutorial / String
 

A blank ( ) means that a blank should be put in front of positive numbers

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