what’s wrong with my code?
it’s giving wrong output for other testcases.
Here’s is my code:
n=[int(a) for a in input().split()]
sum=0
for i in n:
sum=sum+i
if sum>=0:
print(i)
else:
break
what’s wrong with my code?
it’s giving wrong output for other testcases.
Here’s is my code:
n=[int(a) for a in input().split()]
sum=0
for i in n:
sum=sum+i
if sum>=0:
print(i)
else:
break
Hey Ayushi,
Is your code working well on your local system?
Yes…
It’s working well
There may be a problem with the test cases then, I’ll take a look and get back to you. You can continue with the course until then.