Simple Input doubt

Please check the error

Can you please share your code by saving it at the given link and sharing that link with me.

s=0
while(1):
		n=int(input())
		if(s+n<0):
			break
		print(n)
		s=s+n

I have removed the errors from your code

Still not running please check

I submitted the same code and it is passing all the test cases . Can you tell me the error which you are getting.

s does not name a type

Make sure that the language selected for the problem is python3.

Now it is showing : Traceback (most recent call last): File “script.py”, line 3, in n=int(input()) EOFError: EOF when reading a line

Try submitting it in python2 , it should not show any error . When I’m submitting the same solution in python3 , it is passing all the test cases.

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.