Zaktualizuj 'run.py'

This commit is contained in:
Kornelia Girejko 2022-04-27 12:31:23 +02:00
parent 7b0d940907
commit 533cb1485e
1 changed files with 1 additions and 1 deletions

2
run.py
View File

@ -22,7 +22,7 @@ def calculation(path_in, path_out):
male_score = len([w for w in words if w in male])
female_score = len([w for w in words if w in female])
if male_score > female_score:
if male_score + 1 > female_score:
results.append('1')
else:
results.append('0')