human
Python Finding Index of Maximum in List
assistant
Here is some code to find the index of the element with the maximum value from a list 'a'.

max(enumerate(a), key=lambda x: x[1])[0]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.