Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
232 B
1
Indexable
Never
import csv

# open the file in the write mode
with open('test.csv', 'w') as f:
    # create the csv writer
    writer = csv.writer(f)

    # write a row to the csv file
    writer.writerow(['this', 'is', 'a', 'test'])

print('done')