how can i get enter separated list…what should i have to pass in split()
Enter splitted list
Hey @Deep_gauni, you have to use a while loop, and take input in any variable say n = int(input()), and keep taking inputs untill the cumulative sum is non negative. As soon as it becomes negative stop processing the input.
HOpe this resolved 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.