From 5b69d08b5e2c7cfe4024ffa207d588b897f90972 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Fri, 10 Jan 2020 13:41:48 +0200 Subject: [PATCH] [FIX]Typo in max-element-index snippet Minor typo fix --- snippets/max_element_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.