[Tutor] Create a table by writing to a text file.

Alan Gauld alan.gauld at btinternet.com
Wed Feb 22 18:45:24 CET 2012

On 22/02/12 13:14, David Craig wrote:
> Hi,
> I have created a list of containing strings that represent distances
> between many different points and would like to display the results in a
> table.

Others have mentioned using format strings.
If it is only for display you could switch to html.
Then defining the table and adding numbers to the cells not only
aligns the values but gives you control over colours, borders and

Just another option to consider.

Alan G
Author of the Learn to Program web site

More information about the Tutor mailing list