ID EN
Built-in Exceptions

IndexError

Python 3.11

Raised when a sequence subscript is out of range. (Slice indices are silently truncated to fall in the allowed range; if an index is not an integer, TypeError is raised.)

Syntax

PYTHON
exception IndexError

See Also

TypeError