EOF error in python while taking any input

Traceback (most recent call last):
File “source”, line 3, in
n=int(input())
EOFError: EOF when reading a line
Whenever i am taking input i am getting this error

@prasadnitesh202,
Why are you submitting in python? Haven’t you taken the Java course?

yes. i was trying out in different languages for my practise

@prasadnitesh202,
I can only help you in java :smile:

ok.no problem. it anyways got accepted

@prasadnitesh202,
Great!

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.