paranormal-or-skeptic/solution.py
2020-03-09 14:37:26 +01:00

17 lines
345 B
Python

import csv
counter = 0
with open('in.tsv') as tsvfile:
reader = csv.reader(tsvfile, delimiter='\t')
for row in reader:
print(row)
counter+=1
print(counter)
with open('prediction.tsv', 'wt') as tsvfile:
tsv_writer = csv.writer(tsvfile, delimiter='\t')
for i in range(counter):
tsv_writer.writerow('S')