20

I am a beginner programmer and im not sure what this means...

Index Error: list index out of range

2
  • It sounds like you are trying to access an element outside the range of the list. What code is causing this error? Commented Apr 14, 2013 at 23:53
  • 4
    Paste your code so we can help solve your problem Commented Apr 14, 2013 at 23:56

1 Answer 1

52

Generally it means that you are providing an index for which a list element does not exist.

E.g, if your list was [1, 3, 5, 7], and you asked for the element at index 10, you would be well out of bounds and receive an error, as only elements 0 through 3 exist.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.