I don't understand what is wrong in this list
L = [20,5,4,85,96,75,3,3.1]
m = min(i for i in L if L.index(i)%2==1)
print L.index(m), m
the output as I expected:
7 3.1
but when I change the last number in list 3.1 to 3
L = [20,5,4,85,96,75,3,3]
m = min(i for i in L if L.index(i)%2==1)
print L.index(m), m
the output was not 3:
1 5
please explain the reason