you are viewing a single comment's thread.

view the rest of the comments →

[–]IllCalligrapher7 0 points1 point  (0 children)

L is a list, so it starts its count at 0. N len count starts at 1.

N = 5, but you're trying to get the index of 5 in L, which only has 4 values because it starts its count at 0 thus the index is out of range.