0
EOFError: EOF when reading a line(under code underground)----how to solve it?
why after my code running in code playground displayed such a error message,how 2 solve it: Traceback (most recent call last): File "./Playground/file0.py", line 51, in <module> get_input() File "./Playground/file0.py", line 34, in get_input command = input(": ").split() EOFError: EOF when reading a line
2 Answers
+ 2
First share your code not error.
EOF error means End of file.
Generally it occurs when using input. If you used input in code and didn't filled it, it will give you this error or you used parenthesis in opening but forgot to close the similar parenthesis and python reached the end in finding the closed parenthesis.
Try:-
Filling the input if you forgot so..
or
finding out if you forgot to close parenthesis after opening that
0
You have to cancel âwhile Trueâ. On the Playground the input can be read at once and one time only.
while True:
get_input()