Concept icon
Concept

index(x[,start[,end]])

The built-in function returns the index of the first item i the list with the value x.

If no item x is found, it raises a ValueError.

Note: start and end are optional arguments. If provided, the returned index will still be relative to the beginning of the entire list, however, the start and end help to limit the search to a section of the list.

Image 0

0

1

Concept icon
Updated 2021-06-13

Contributors are:

Who are from:

References


Tags

Python Programming Language

Data Science