22 lines
472 B
Python
22 lines
472 B
Python
|
import csv
|
||
|
import os
|
||
|
import json
|
||
|
|
||
|
|
||
|
def csv_count():
|
||
|
with open("011824_uni_contrib.csv", "r") as file:
|
||
|
reader = csv.reader(file)
|
||
|
true_rep_counter = 0
|
||
|
for i, line in enumerate(reader):
|
||
|
if line[2] == line[3] == line[4] == line[5] == '0':
|
||
|
print("zeroes")
|
||
|
else:
|
||
|
print(line)
|
||
|
true_rep_counter += 1
|
||
|
print(true_rep_counter)
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
csv_count()
|
||
|
|
||
|
|