fallig all testcase except first one
link of code
i am not able to find my mistake plz help
fallig all testcase except first one
link of code
i am not able to find my mistake plz help
Hey @anandprakash1091971, instead of taking the input as a single list of numbers , you can follow this approach :
Initialise an empty list and sum variable to zero.
Your approach is not working as your are inputting all the integers in a single line (using a space bar right ?)
But the test cases are so designed that each input is in a separate line which can be achieved using the above approach.
Hope this helps.
All the Best 