IndexError

An IndexError is raised when an integer index is out of range.

You can see this when you index past the end of a list:

>>> z = [1, 4, 2]
>>> z[4]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: list index out of range
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset