Fixed typo on line 6 (#31809)
The text "the" was repeated and is now deleted.
This commit is contained in:
@ -3,9 +3,9 @@ title: List Index Method
|
||||
---
|
||||
## List Index Method
|
||||
|
||||
Among the many functions which come along with the list data structure the `index()` returns the the first occurrence/index of the element in the list given as an argument to the function.
|
||||
Among the many functions which come along with the list data structure, the `index()` returns the first occurrence/index of the element in the list given as an argument to the function.
|
||||
|
||||
Lists are the most basic Python data structure and stores a list of values in order (in comparison to dictionaries, which order doesn't matter). We retrieve the items by numerical index.
|
||||
Lists are the most basic Python data structure and store a list of values in order (in comparison to dictionaries, which order doesn't matter). We retrieve the items by numerical index.
|
||||
|
||||
Keeping in mind the fact that indexing starts from 0, or the first element is taken to be at the 0 index, let's have a look at some examples.
|
||||
|
||||
|
Reference in New Issue
Block a user