s407259-mlworkshops/script.py

6 lines
144 B
Python
Raw Normal View History

2019-04-26 11:26:54 +02:00
num_lines = sum(1 for line in open('./Infra/wikiniews_results.tsv'))
2019-04-26 11:25:37 +02:00
2019-04-26 11:46:32 +02:00
file = open('num_lines.txt', 'w')
2019-04-26 11:47:36 +02:00
file.write(str(num_lines))
2019-04-26 11:29:09 +02:00
file.close()