Outputting to a file
<p>code snippet:</p>

<pre><code>def after_equals(s):
    return s.partition(' = ')[-1]
for k,s in zip(keyword, score):
  print after_equals(k) + ',' + after_equals(s)
</code></pre>

<p>The output of the code prints:</p>

<pre><code>NORTH,88466
GUESS,83965
DRESSES,79379
RALPH,74897
MATERIAL,68168
</code></pre>

<p>I need to output the into file. Please advice how to write to a file.</p>
