Create tab separated print output from a list of tuples python
<p>I have a list of tuples that I want to turn into a tab separated format that I can output to the screen.
I have, for example a list of tuples A.</p>

<pre><code>[('1_1248', 1, 1),('1_148', 7, 0),('1_18', 6, 1),('1_10', 2, 1)]
</code></pre>

<p>My code reads: </p>

<pre><code>print "ID", "name" , "name"
print("\t".join( repr(e) for e in output))
</code></pre>

<p>Which produces:</p>

<pre><code>ID   name  name
('1_1248', 1, 1)     ('1_148', 7, 0)    ('1_18', 6, 1)  ('1_10', 2, 1)
</code></pre>

<p>I want some sort of tab separated output (preferably using one or two lines):</p>

<pre><code>ID    name  name
'1_1248'  1  1
'1_148'   7  0
'1_18'    6  1
'1_10'    2  1
</code></pre>

<p>I know how to do this the "long" way, but is there a short 1/2 liner?</p>