Also please check the code and suggest if I am making errors in it.
EOF error while executing code of printing numbers till getting the cummulative sum is negative
I submitted the same code and it worked fine .
sum=0
while(sum>=0):
num=int(input())
sum+=num
if(sum<0):
break
else:
print(num)
I submitted the above given code and its working fine . Please make sure that you have selected python3 as the language in the editor.
I am not able to import created package math and use it in the main file
You dont need to import anything in this program
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.

