EOF error while input in python

when i am taking input, i get an error:
Traceback (most recent call last):

File “script.py”, line 3, in

n= int(input())

EOFError: EOF when reading a line

it works fine when I use custom inputs.

Can you please share your code by saving it at the given below link and sharing the link of the saved code with me , so I can look into it .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.