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 :
with open('out.csv', 'w') as f:
c = csv.writer(f)
c.writerows(root)
The error I am getting is " NameError: name 'csv' is not defined "
Can anybody help please?
import csvfirst