EOF error problem while taking input.

eof
python3

#1

I am unable to run any program in python 3 ide because of the EOF error on the first line itself while taking the input for the number of test cases. I used
T = int(input())
Please provide a solution.


#2

use try / except
e.g:

try:

   T = int(input())

except:

   pass

#3

Thank you. That worked.


#4

When I used try/except, it said ‘t’ is not defined.
What should I do?


#5

Ye I am also getting the same error as goku548 said.Please can anyone solve my problem.