Fixed typo on line 6 (#31809)

The text "the" was repeated and is now deleted.
This commit is contained in:
tachoni
2019-01-19 03:59:12 +03:00
committed by Tom
parent cb0cd87d7d
commit 42b7306f76

View File

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