3 test cases are wrong

please help me with the code

Hey shubhankar,
How you are approaching this question? or Can you share your code?
Would be waiting…

n= [int(i) for i in input().split()] sum=0 for j in n: sum=sum+j if sum<0: break print(j)

Please check the input format of the question, and the way you are taking input. It should be multi line input, you are receiving inputs in just 1 line

its still not working and please tell me whats wrong with this code

n=int(input()) count=0 for i in range(1,n): if n%i==0: count=count+1 if(count==1): print(“Prime”) else: print(“Not Prime”)

Do something like this:

sum =0
while sum>=0:
   n = int(input())
   sum+= n
   if sum<=0:
       break
   print(n, end= " ")

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.