python get max int value code example Example 1: python return list max inde a.index(max(a)) Example 2: max int in a python list >>> L=[2,-7,3,3,6,2,5] >>> max(L) 6