All test case not passed

y = 0
for i in range(1,6):
x = int(input())
if(x>-1000 and x<1000):
y = y+x
if(y>0):
print(x)
elif(y<0):
break

it is showing only two test case passed please tell me where did i gone wrong?

Hi,Kushal
the input is given if the form of string format.
In this problem we have to first take input string form user then split that string into list of integers then iterate over it and perform our operations.
Your approach and logic to problem is right just make sure of input format.
refer to course video : python 03 input
https://online.codingblocks.com/player/11542/content/663/6048