From what I explored, csv.writeRow should take in the list and then write it to the given csv file. Here is what I tried:
from csv import writer with open('Test.csv', 'wb') as file: csvFile, count = writer(file), 0 titles = ["Hello", "World", "My", "Name", "Is", "Simon"] csvFile.writerow(titles)
I'm just trying to write it so that each word is in a different column.
When I open the file that it creates, I get the following message:

After continuous clicking, I get a message that the file is either damaged or the SYLK file. Then I can open the file, but only after going through two error messages every time I open the file.
Why is this?
Thanks!
python csv
Cisplatin
source share