gh-107194: Improved language of list.index in tutorial (gh-138518)

This commit is contained in:
Ric 2025-09-05 15:16:04 +08:00 committed by GitHub
parent e9c2a357fb
commit f19f1d8563
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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