Tyler Tyler - 3 months ago 6
Python Question

IndexError: list index out of range and python

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?

Answer

If you have a list with 53 items, the last one is thelist[52] because indexing start at 0.

Comments