EOF error problem while taking input.

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.

use try / except
e.g:

try:

   T = int(input())

except:

   pass

Thank you. That worked.

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