0
I was solving the first code coach in arrays
But the 5th test result had an error msg which i can't see cuz it was locked. So can u guys point out the error here https://code.sololearn.com/c3s1fqJcx8RD/?ref=app
3 Answers
+ 3
Your range starts from 0 and finishes at 4 (5 items), so this means that an input of 5 will generate an "Out of Index" error.
Adjust your upper condition to >4
+ 3
Thanks got it