Find the max and min index value of the Python list
In this article, I’m gonna show you two different method way through which you can find the maximum and minimum element of the list
Method_1: Using List Comprehension:
In the give list, we have a total of 7 elements in which the highest value is placed at position 4 which is 10 and the lowest value is at position 6 which is 0, as we know enumerate is a builtin python module and its adds counter to an iterable and returns it.
Method_2: Using index module:
As you can see above list comprehension may be a little bit complicated for beginners so by using the index method we can do this