+ 1

How do I fix this exception error? Everything looks fine but the error keeps popping up.

https://code.sololearn.com/ct16ph6W3m18/?ref=app

14th Jan 2019, 3:10 AM
Ambar Rivera
Ambar Rivera - avatar
3 Réponses
+ 2
i hope this helps you Ambar Rivera https://code.sololearn.com/caLZ95FkTRsl/?ref=app just letting you know that your alphabet array was one number short. this caused the error.
14th Jan 2019, 4:30 AM
Ollie Q
Ollie Q - avatar
+ 2
well you have 26 so the array length needs to be one greater than the amout of items in the array. That’s the general rule i apply.
14th Jan 2019, 9:45 PM
Ollie Q
Ollie Q - avatar
+ 1
Thank you so much, already fixed it. Why must it say 27 though?
14th Jan 2019, 9:34 PM
Ambar Rivera
Ambar Rivera - avatar