title: NameError: name 'csv' is not defined
body: <p>I am new to Python, and I want to write a csv file, that lists the roots of my equation.
  I am working on Sage.
  My code is  :</p>
  
  <pre><code>with open('out.csv', 'w') as f:
      c = csv.writer(f)
      c.writerows(root)
  </code></pre>
  
  <p>The error I am getting is " NameError: name 'csv' is not defined "</p>
  
  <p>Can anybody help please?</p>