Maybe this is a simple question but I can't find in the community
I tried to write in files
import csv
f_out = open('filename.csv','w')
csvwriter = csv.writer(f_out)
li = [1,2,3,4,5,6]
csvwriter.writerow(li)
csvwriter.writerow(li)
csvwriter.writerow(li)
csvwriter.writerow(li)
f_out.close()
And instead of this :
1,2,3,4,5,6
1,2,3,4,5,6
1,2,3,4,5,6
1,2,3,4,5,6
I get this :
1,2,3,4,5,6
1,2,3,4,5,6
1,2,3,4,5,6
1,2,3,4,5,6
And 2 another empty line at the end of the file.
anyone can say where is my problem?