Hi. How do I do the following in Python 2.2 using built-in modules only?
I have a list of lists like this:
[['dog', 1], ['cat', 2, 'a'], ['rat', 3, 4], ['bat', 5]]
And from it I'd like to produce a string representation of a table like this where the columns are delimited by tabs and the rows by newlines.
dog 1
cat 2 a
rat 3 4
bat 5
i.e.
'dog\t1\ncat\t2\ta\nrat\t3\t4\nbat\t5'