Learn Before
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.

0
1
Updated 2021-06-13
Tags
Python Programming Language
Data Science