EOF error when reading a line

I’m getting EOF when reading a line
I can’t understand why is it coming.
Here’s my code:

def isprime(n):
if n>1:
for i in range(2,n):
if n%i==0:
return False
else:
return True

t=int(input())
if t<10:
for i in range(t):
a,b = [int(a) for a in input().split()]
x=[]

    for i in range(a,b):
        if isprime(i)==True:
            x.append(i)
        else:
            continue

    print(x)

else:
print(“error”)

Actually you are taking input(), so in coding blocks id You need to click on “Input” button on top right side, and specify the input element there, so that your code can use it and run accordingly. \

Hope this helped you.