Error in my code according to the inbuilt compiller in the course

Sir, My code is giving an error when executed in the compiler given in the course but it’s working fine in IDLE.

so if i give an input
75
5
10
it gives an error saying end of line at z=int(input())
but it works for the other inputs
please refer to the first question in Python Practice Problems for the question

Hey @devchopra999_11c6416ab7f09bbf,
Please provide the link of the question.

https://online.codingblocks.com/app/player/209779/content/201856/4693/code-challenge

Ok so basically your code will give this error until “y” is less than 0 only because then only loop will break and code will stop taking input else it will continuously take input and give error.

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.

y=0
z=0
while y>=0:
z=int(input())
if z>-1000 and z<1000:
y=y+z
if y>=0:
print(z)
else:
break

it’s still giving the same error for the same input sir
whats wrong in the code?
the indenting is fine no problem with that, it went like this due to copy paste