i am try to enter this code:
s = 0
n=[int(number) for number in input().split()]
for i in range(len(n)):
if n[i]>0:
s += n[i]
print(s)
else:
break
but don’t know why this is not work . I check on the solution but that is similar to my code
i am try to enter this code:
s = 0
n=[int(number) for number in input().split()]
for i in range(len(n)):
if n[i]>0:
s += n[i]
print(s)
else:
break
but don’t know why this is not work . I check on the solution but that is similar to my code
Hey @Deep50, there are little changes in your code,
s = 0
n= int(input())
while(True):
s+= n
if s>=0:
print(n)
else:
break
n = int(input())
I need to made these changes, as in input file all inputs are not in single line, also we need to print number and not cumulative sum.
Hope this cleared your doubt.
Plz mark the doubt as resolved in my doubts section 
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.
does not work the solution . Please try your self firstly before give me
Hey @Deep50, here i am sharing the screenshot, where i submitted the code and got 100% score,
Now you are requested to share your screenshots.
there some syntax error on your given code . I change it and now its work
thankful to you and continue to help me