mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-107194: Improved language of list.index in tutorial (gh-138518)
This commit is contained in:
parent
e9c2a357fb
commit
f19f1d8563
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ objects:
|
|||
.. method:: list.index(x[, start[, end]])
|
||||
:noindex:
|
||||
|
||||
Return zero-based index in the list of the first item whose value is equal to *x*.
|
||||
Return zero-based index of the first occurrence of *x* in the list.
|
||||
Raises a :exc:`ValueError` if there is no such item.
|
||||
|
||||
The optional arguments *start* and *end* are interpreted as in the slice
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue