TypeError: 'module object is not callable'
khemkaamit at gmail.com
Tue Sep 4 12:24:44 CEST 2007
On 9/4/07, Chris.Tidy at jet.uk <Chris.Tidy at jet.uk> wrote:
> Thanks guys. Changing to how Python does things has a lot of geting
> used to!
> Do any of you have any ideas on the best way to do the following
> Each loop I perform, I get a new list of Strings.
> I then want to print these lists as columns adjacent to each other
> starting with the first
> created list in the first column and last created list in the final
> If you need any more information, just let me know!
If I understand correctly what you may want is:
>>> l = ['1', '2', '3', '4']
you can do:
>>> print "\t".join(l) # lookup join method in string module,
assuming "\t" as the delimiter
>>> for i in l:
.... print i, '\t' , # note the trailing ","
If this is not what you want, post an example.
Btw, Please post new issues in a separate thread.
More information about the Python-list