s416422-mlworkshops/solution.py
2019-04-26 15:06:39 +02:00

6 lines
195 B
Python

with open ('values.txt', 'r') as file:
with open ('WER_values.txt', 'w') as file_o:
for i in file:
C, S, D, I = i.strip()
file_o.write((S+D+I)/(S+D+C) + '\n')