Code:
a, b, c = map (float, input (). split (''))
But when checking on the site the following error:
Traceback (most recent call last):
File "595bd828-ce3d-4d8b-9055-47517a8a18c0", line 3, in & lt; module & gt;
a, b, c = map (float, input (). split (''))
ValueError: could not convert string to float:
I can’t figure out what values can reproduce it. By condition:
- 10000 & lt; = a, b, c & lt; = 10000
They can be of any type (not only integers)
separated by spaces
Answer 1, authority 100%
Should check for an empty line in input ()
.
Judging by the error ValueError: could not convert string to float:
an empty string was received:
& gt; & gt; & gt; float ('')
Traceback (most recent call last):
File "& lt; stdin & gt;", line 1, in & lt; module & gt;
ValueError: could not convert string to float:
To repeat the mistake, it is enough:
& gt; & gt; & gt; list (map (float, '' .split ('')))
Traceback (most recent call last):
File "& lt; stdin & gt;", line 1, in & lt; module & gt;
ValueError: could not convert string to float: