21

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

Index Error: list index out of range

user2280738
  • 263
  • 1
  • 2
  • 3

1 Answers1

51

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.

phoebus
  • 14,673
  • 2
  • 33
  • 35