I want to read multiple line input. format of input is first line contains int as no. of lines followed by string lines. i tried with
while True:
line = (raw_input().strip())
if not line: break
elif line.isdigit(): continue
else:
print line
it prints the string lines but shows run time error message
Traceback (most recent call last):
File "prog.py", line 2, in <module>
line = (raw_input().strip())
EOFError: EOF when reading a line
Is it the right way to read input?
Why run time error?
I am new to python Please help me