Presenting Data neatly... how :)

Mike C. Fletcher mcfletch at rogers.com
Wed Nov 13 18:43:13 EST 2002


See documentation for the string methods ljust, rjust and center, decide 
on a column width, then print the padded strings with a single space 
separating them.

 >>> "20%".rjust(20)
'                 20%'

HTH,
Mike

e-tones.co.uk wrote:
...

>Is there anyway to format it like this:
>
>Dell            45       40%
>Microsoft   60       56%
>IBM             4      5%
>
>
>?
>
>Help
>Taz
>  
>
 
_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/







More information about the Python-list mailing list