WeCodeAcademy
❮ list.reverse()list.count() ❯

list.index()

The index of the first match.

Group: List

Syntax

list.index(x)

Example

Examplepython
Open in editor »

← All of Python Reference