add error correction for broken input formats

This commit is contained in:
dymik739 2023-02-25 14:37:39 +02:00
parent b71bbb8ef6
commit 94cc2713ed
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ raw_stats = []
while True:
n = input()
if n != "":
raw_stats.append(float(n))
clear_n = n.replace(",", ".").replace("..", ".")
raw_stats.append(float(clear_n))
else:
break