diff --git a/snippets/max_element_index.md b/snippets/max_element_index.md index d500e0dac..1103e6055 100644 --- a/snippets/max_element_index.md +++ b/snippets/max_element_index.md @@ -3,7 +3,7 @@ title: max_element_index tags: list,beginner --- -Returns the pindex of the element with the maximum value in a list. +Returns the index of the element with the maximum value in a list. Use `max()` and `list.index()` to get the maximum value in the list and return its index.