program to find index of large number in list

This commit is contained in:
Shubham Lad
2019-10-22 00:37:32 +05:30
parent 8a46cbdc26
commit 4ff3d8ae61

View File

@ -12,6 +12,6 @@ def max_element_pos(arr):
return arr.index(max(arr)) + 1 return arr.index(max(arr)) + 1
``` ```
```py ```python
max_element_pos([5, 8, 9, 7, 10, 3, 0]) # 5 max_element_pos([5, 8, 9, 7, 10, 3, 0]) # 5
``` ```