[Tutor] Making table

Per Jr. Greisen pgreisen at gmail.com
Mon Mar 19 13:11:27 CET 2007


Hi,
I need to generate a table with different x,y,z values and write them to a
file:
10.171  -15.243 -2.558
9.837   -14.511 -1.923
-23.451 -13.870 51.507

I would like to write to the files as columns
 10.171   -15.243   -2.558
   9.837   -14.511   -1.923
-23.451   -13.870  51.507
   0.233      0.453    0.111

so the number are correctly aligned. Does anybody know a function that can
align the numbers.
Any advice or help appreciated. Thanks in advance.
-- 
Best regards
Per
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070319/7f8f6213/attachment.html 


More information about the Tutor mailing list