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

5th Jul 2020, 5:30 AM
BIGBEN
BIGBEN - avatar
2 Antworten
+ 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
5th Jul 2020, 5:56 AM
Arctic Fox
Arctic Fox - avatar
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()
5th Jul 2020, 8:08 AM
JaScript
JaScript - avatar