My answer is correct but I am unable to pass test case 2 please tell me what’s wrong?
Issue with test case 2
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’
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.