add error correction for broken input formats
This commit is contained in:
parent
b71bbb8ef6
commit
94cc2713ed
|
@ -9,7 +9,8 @@ raw_stats = []
|
||||||
while True:
|
while True:
|
||||||
n = input()
|
n = input()
|
||||||
if n != "":
|
if n != "":
|
||||||
raw_stats.append(float(n))
|
clear_n = n.replace(",", ".").replace("..", ".")
|
||||||
|
raw_stats.append(float(clear_n))
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue