maximum and index of a list pythopn 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]