diff --git a/snippets/min_element_index.md b/snippets/min_element_index.md index dabbf7220..55aa63248 100644 --- a/snippets/min_element_index.md +++ b/snippets/min_element_index.md @@ -8,10 +8,10 @@ Returns the index of the element with the minimum value in a list. - Use `min()` and `list.index()` to obtain the minimum value in the list and then return its index. ```py -def min_element_index(array): - return array.index(min(array)) +def min_element_index(arr): + return arr.index(min(arr)) ``` ```py min_element_index([3, 5, 2, 6, 10, 7, 9]) # 2 -``` \ No newline at end of file +```