ID EN
Collections

index

Python 3.11

Return the position of x in the deque (at or after index start and before index stop). Returns the first match or raises ValueError if not found.

Syntax

PYTHON
index(x[, start[, stop]])

See Also

ValueError