poprawki do obliczania metryk 19

This commit is contained in:
alicja.m.musial 2020-04-03 17:11:28 +02:00
parent 648728ef4a
commit 42e29f18d4

View File

@ -3,7 +3,6 @@ import sys
if __name__ == '__main__':
sum = 0
lineCount = 0
werAv = 0
with open('wer.txt','a+') as werOut:
for line in werOut:
@ -11,5 +10,6 @@ if __name__ == '__main__':
sum += num
lineCount += 1
werAv = sum / lineCount
werOut.write(f'{werAv:.5f}\n')
werAv = 0
werAv = sum / lineCount
werOut.write(f'{werAv:.5f}\n')