IndexError: list index out of range and python

后端 未结 8 2255
醉酒成梦
醉酒成梦 2020-11-22 04:58

I\'m telling my program to print out line 53 of an output. Is this error telling me that there aren\'t that many lines and therefore can not print it out?

8条回答
  •  终归单人心
    2020-11-22 05:04

    That's right. 'list index out of range' most likely means you are referring to n-th element of the list, while the length of the list is smaller than n.

提交回复
热议问题