find the position of the maximum python list code example
Example 1: max of list with index
a.index(max(a))
Example 2: index of maximum value in list python
[i for i, x in enumerate(l) if x == max(l)]
a.index(max(a))
[i for i, x in enumerate(l) if x == max(l)]