I used the following function to return the maximum value index is the list:
def explicit(l):
'''This function returns the index of the largest item in the list'''
max_val = max(l)
max_idx = l.index(max_val)
return max_idx
However, the function seems not working if there are two maximum values.
How can I achieve that?