Issue with test case 2

My answer is correct but I am unable to pass test case 2 please tell me what’s wrong?

hey @rishabb0220_574491cc1db7c5b2 ,
it might be showing error to you ?? can you tell me that

It only says compile message - Wrong answer

so in that case , you need to check your code and conditions provided.
You code fails with test case 2 , there is some logic issue.

There is no python code in the editorial, why is that?

‘sum =0 while sum>=0: num = int(input()) sum = sum+num if sum>0: print(num) else: break’

didn’t get it…

can you please upload your code on ide.codingblocks.com and share it here.

sum =0

while sum>=0:
num = int(input())
sum = sum+num
if sum>0:
print(num)
else:
break

i am not able to understand the indentation like this, kindly share on the link said above

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.