[PYTHON] EOFError: EOF when reading a line does not have a standard input value set

Solved on this site [Teratel] I'm in trouble because I don't understand the mistake in the code I wrote.

What I made a mistake

lesson.py


while True:
    line = input()
    if line == "_":
        break
    team.append(line.split(","))

line=input() Shit that it's clogged at that point.

EOFError: EOF when reading a line

I got the error.

In the first place, it is a rudimentary mistake of forgetting to set the value even though "retrieving the value" with standard input. If you get this error, reset the standard input.

Recommended Posts

EOFError: EOF when reading a line does not have a standard input value set
When incrementing the value of a key that does not exist
python Boolean operation does not return a Boolean value