Im not able to print the numbers here ,, error is coming again and again

test cases are not getting passes … i

I am storing the elements in a list and calculating the sum .
not getting the output

what is the best approach and code for this

Hey @sankalparora5, you need to figure out the answer yourself. Otherwise leaderboard problems will loose their essence. If you are not able to solve, than we have provided the solution, itself, you need to open the solution and refer that.

Hope this resolved your doubt.
Plz mark the doubt as resolved :blush:

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.