+ 2

What is EOFError in python and how should I correct it ??

https://code.sololearn.com/cvKgdCaR4syo/?ref=app

28th Dec 2017, 5:43 PM
Ankit Singh Rathour
Ankit Singh Rathour - avatar
4 ответов
+ 3
the SL interpreter required all input upfront. if something is missing, you get EOFError
28th Dec 2017, 6:09 PM
yuri
+ 1
I agree with @yuri . Basically SoloLearn treats the initial input like a file and every time input is called, it reads a line off that file. Hence all input must be provided before hand, else EOF of the input file is reached. Your program is also restricted to a 3x3 array.
28th Dec 2017, 6:44 PM
H Chiang
0
I think there should be a total of 11 inputs ... 2 inputs for rows and columns ... and the rest 9 for its elements ...
29th Dec 2017, 5:34 PM
Ankit Singh Rathour
Ankit Singh Rathour - avatar