[Solved] Panic Runtime Error index out of range [3] with length 3
[ad_1] Let’s say that you pass the string XII to your function. That makes len(s) 3, which means that the body of your loop would (if the panic didn’t occur) execute 4 times (when i is 0, 1, 2 and 3 since your condition is i <= len(s). On the iteration where i is 2 … Read more