[Tutor] Displaying in columnar / tabular form
Kent Johnson
kent37 at tds.net
Thu Aug 24 15:12:41 CEST 2006
Vincent Gulinao wrote:
>
> Anyone knows a neat way of displaying output in columnar/tabular form?
>
> Say you have a list with both dictionary and string members; you want
> to print the data, dictionary being one element per line, and the
> string on the next "column" aligned on the first element of the
> dictionary, or something like that.
>
You might like this recipe:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/267662
Another option is to write an HTML file containing a table.
Kent
More information about the Tutor
mailing list