Error in this code

Please share in IDE :slight_smile:

Hey @vector.9974
Re-read the question ,you don’t have to take sum according to whether they are at odd index or even
but according to whether they are odd or even .

ok… thank you sir

1 Like

Hey @vector.9974
If you don’t have any other doubt in this then please mark it as resolved :slight_smile:

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.