max and index listpython code example Example: maximum and index of a list pythopn >>> m = max(a) >>> [i for i, j in enumerate(a) if j == m] [9, 12]