li=[1,7,9] max(li)
xy = [50, 2, 34, 6, 4, 3, 1, 5, 2] t=0 for i in range(len(xy)): if xy[i]<xy[t]: t=i print t