TypeError: join() takes exactly one argument (2 given)
<p>I'm a total newbie and trying to troubleshoot some code copied from someone's program. Currently:</p>

<pre><code>#INITIALIZE OUTPUT FILE AND WRITE HEADER ROW
outfp = open(outfn, "w")
outfp.write('.'.join(fields, '\t') + '\n')  # header
</code></pre>

<p>produces the following error:</p>

<p>TypeError: join() takes exactly one argument (2 given).</p>

<p>Based on what I've seen in some other threads I think "\t".join might be an option but I'm not clear how I'd get this to account for both "\t" and "\n". Any help appreciated. Thanks</p>