Basic Doubt of input function in python

Traceback (most recent call last):
File “script.py”, line 26, in
n = input();
EOFError: EOF when reading a line

Why am i getting this type of error??

And how to tackle with this???

Hey @mayanksingh4597, you usually get an EOF error when you compile the code without giving custom input. I request you to kindly provide the custom input to your program code before compiling the code. Write the input by clicking on the custom input tab.

I hope this clears your doubt ! :slight_smile:
Please mark the doubt as resolved in your doubts section !
Happy Learning ! :slightly_smiling_face:

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.